Last modified: 2013-06-26 02:43:46 UTC
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>
@Gabriel, @James: That makes outcome of using our media insert tool pretty miserable so I'm suggesting increasing of its priority.
Related URL: https://gerrit.wikimedia.org/r/70551 (Gerrit Change I75dbbfdd248a6f5696252ef3a2d7ca6ede0fa156)
*** This bug has been marked as a duplicate of bug 49844 ***