Author: avarab
Description:
The problem is that Parser::magicISBN() is called after Linker::makeThumbLinkObj
has been run on the text, which means that the magicISBN function will expand on
any ISBN number it recognizes, including those inside XHTML tags like alt="" or
title="", the same thing happens with <math>.
For example, "[[Image:Badimg.jpeg|thumb|<math>2+2</math>]]" is turned into:
<div class="thumb tright"><div style="width:202px;"><a
href="/mw/HEAD/wiki/Image:Badimg.jpeg" class="internal" title="<span
class="texhtml>2 + 2</span>"><img
src="/mw/HEAD/images/thumb/9/98/200px-Badimg.jpeg" alt="<span class="texhtml>2 +
2</span>" width="200" height="300" longdesc="/mw/HEAD/wiki/Image:Badimg.jpeg"
/></a> <div class="thumbcaption" ><div class="magnify" style="float:right"><a
href="/mw/HEAD/wiki/Image:Badimg.jpeg" class="internal" title="Enlarge"><img
src="/mw/HEAD/skins/common/images/magnify-clip.png" width="15" height="11"
alt="Enlarge" /></a></div><span class="texhtml">2 + 2</span></div></div></div>
Version: unspecified
Severity: major