Page MenuHomePhabricator

Empty <math> tag gives UNIQ
Closed, ResolvedPublic

Description

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]]


Version: unspecified
Severity: normal

Details

Reference
bz31824

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:56 PM
bzimport set Reference to bz31824.
bzimport added a subscriber: Unknown Object (MLST).

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.

suhasmonk wrote:

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.

Attached:

sumanah wrote:

Thanks for the patch, Suhas!

This bug seems to be a regression of bug 8372 "return nothing on empty <math> tags." / r18870 .