Page MenuHomePhabricator

Images: Serializer adds link= to image wikitext when it shouldn't
Closed, ResolvedPublic

Description

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>


Version: unspecified
Severity: normal

Details

Reference
bz49848

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:09 AM
bzimport set Reference to bz49848.

@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 ***