mediawiki-extensions-ImageMap/imageMapParserTests.txt
Karsten Hoffmeyer 2ba1d20fcd Use LIBXML_NOEMPTYTAG to avoid creating self-closing <a> tag
Browsers just treat the self-closed <a> tag as only the open
tag, so anything after the map would become linked.

tidy normally cleans this up, but other wikis without it, or
those using RemexHtml would see this issue.

Fix suggested by Phabricator user Porplemontage

Bug: T136855
Change-Id: I3b00e1a9cbb096afebe37614a79548f64d561e3b
2017-10-16 19:29:28 -07:00

11 lines
495 B
Plaintext

!! test
dummy test
!! input
<imagemap>
Image:Foobar.jpg
</imagemap>
!! result
<div class="noresize" style="height: 220px; width: 1941px; "><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220"></img><div style="margin-left: 1921px; margin-top: -20px; text-align: left;"><a href="/wiki/File:Foobar.jpg" title="About this image"><img alt="About this image" src="/extensions/ImageMap/desc-20.png?15600" style="border: none;"></img></a></div></div>
!! end