Page MenuHomePhabricator

Empty <math> tag gives UNIQ
Closed, ResolvedPublic



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



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).

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.


sumanah wrote:

Thanks for the patch, Suhas!

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