mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-27 15:40:03 +00:00
2ba1d20fcd
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
11 lines
495 B
Plaintext
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
|