Last modified: 2006-06-01 21:53:37 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 T7139, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5139 - Bad iteraction between image captions and Cite
Bad iteraction between image captions and Cite
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/User:Ces...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-01 18:23 UTC by Cesar Eduardo Barros
Modified: 2006-06-01 21:53 UTC (History)
0 users

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


Attachments

Description Cesar Eduardo Barros 2006-03-01 18:23:42 UTC
When a <ref> is found within an image's caption, the result is a confusing
jumble, including HTML code showing up, and HTML code within the title= and alt=
attributes. I found the problem live at [[spyware#Routes of infection]].

To reproduce:

[[Image:Example.jpg|thumb|Test.<ref>true</ref>]]
<references/>

The resulting output is:

<div class="thumb tright">
<div style="width:252px;"><a href="/wiki/Image:Example.jpg" title="Test.&lt;sup
id=" class="reference"></a><a href="#_note-0" title="">[1]</a>"&gt;<img
src="http://upload.wikimedia.org/wikipedia/en/thumb/a/a9/Example.jpg/250px-Example.jpg"
alt="Test.&lt;sup id=" class="reference" /><a href="#_note-0" title="">[1]</a>"
width="250" height="246" longdesc="/wiki/Image:Example.jpg" /&gt;
<div class="thumbcaption">
<div class="magnify" style="float:right"><a href="/wiki/Image:Example.jpg"
class="internal" title="Enlarge"><img
src="/skins-1.5/common/images/magnify-clip.png" width="15" height="11"
alt="Enlarge" /></a></div>
Test.<sup id="_ref-0" class="reference"><a href="#_note-0"
title="">[1]</a></sup></div>
</div>
</div>
<ol class="references">
<li id="_note-0"><b><a href="#_ref-0" title="">↑</a></b> true</li>
</ol>
Comment 1 Cesar Eduardo Barros 2006-03-01 18:25:28 UTC
Live testcase at [[User:CesarB/Testcases/5139]].
Comment 2 Cesar Eduardo Barros 2006-05-29 23:02:37 UTC
Seems to have been fixed silently; the testcase now returns the expected result.

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


Navigation
Links