Last modified: 2012-04-08 17:27:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33824, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31824 - Empty <math> tag gives UNIQ
Empty <math> tag gives UNIQ
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy, patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-19 15:40 UTC by Mark A. Hershberger
Modified: 2012-04-08 17:27 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Fix for the empty math tag (481 bytes, patch)
2012-04-06 09:01 UTC, Suhas
Details

Description Mark A. Hershberger 2011-10-19 15:40:49 UTC
From 
https://en.wikipedia.org/w/index.php?diff=456329927:

Typing <math></math> gives: UNIQ6e8c92a14d4a1f19-math-00000026-QINU.

Granted an empty <math></math> pair is pointless, but one had somehow got into the wikitext of 'Central limit theorem' — see [[Talk:Central limit theorem#Rubbish in Multivariate]]
Comment 1 Mark A. Hershberger 2012-03-23 16:18:02 UTC
http://en.wikipedia.org/w/index.php?title=Benini_distribution&oldid=418462033

Another example.  Seems like the extension should check to see if it has anything before trying to render something.

Tagging easy since that seems like an easy check to make.
Comment 2 Mark A. Hershberger 2012-03-23 16:53:07 UTC
Another example:
http://it.wikipedia.org/w/index.php?diff=48247842&oldid=1746395
Comment 3 Suhas 2012-04-06 09:01:12 UTC
Created attachment 10385 [details]
Fix for the empty math tag

I have attached the patch for this bug. It fixes the bug by returning an empty string if the math tag is empty.
Comment 4 Sumana Harihareswara 2012-04-06 13:00:04 UTC
Thanks for the patch, Suhas!
Comment 5 Antoine "hashar" Musso (WMF) 2012-04-08 10:31:04 UTC
This bug seems to be a regression of bug 8372 "return nothing on empty <math> tags." / r18870 .
Comment 6 Mark A. Hershberger 2012-04-08 17:16:36 UTC
Applied with parser tests: https://gerrit.wikimedia.org/r/4422

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links