https://bugzilla.wikimedia.org/show_bug.cgi?id=49848
Web browser: ---
Bug ID: 49848
Summary: Serializer adds link= to image wikitext when it
shouldn't
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JS/serializer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
After serializing this wikitext from
http://www.mediawiki.org/wiki/Parsoid/RDFa_vocabulary:
<span typeof="mw:Image" class="mw-default-size">
<a href="./File:Foobar.jpg">
<img resource="./File:Foobar.jpg"
src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg"
width="1941" height="220">
</a>
</span>
serializer produces: [[File:Foobar.jpg|link=File:Foobar.jpg]] instead of:
[[Image:Foobar.jpg]].
Please also consider such case of HTML DOM:
<figure typeof="mw:Image/Frame" class=" mw-halign-right"><a rel="mw:thumb"
href="http://commons.wikimedia.org/wiki/File:Poland_1939.xcf"><img
src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/cd/Poland_1939.xcf/142px-Poland_1939.xcf.png"
width="142" height="150" resource="undefined"></a></figure>
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l