Last modified: 2013-06-26 02:43:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51848, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49848 - Images: Serializer adds link= to image wikitext when it shouldn't
Images: Serializer adds link= to image wikitext when it shouldn't
Status: RESOLVED DUPLICATE of bug 49844
Product: Parsoid
Classification: Unclassified
serializer (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-20 00:14 UTC by Inez Korczyński
Modified: 2013-06-26 02:43 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Inez Korczyński 2013-06-20 00:14:05 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>
Comment 1 Inez Korczyński 2013-06-20 00:15:30 UTC
@Gabriel, @James: That makes outcome of using our media insert tool pretty miserable so I'm suggesting increasing of its priority.
Comment 2 Gerrit Notification Bot 2013-06-25 22:09:28 UTC
Related URL: https://gerrit.wikimedia.org/r/70551 (Gerrit Change I75dbbfdd248a6f5696252ef3a2d7ca6ede0fa156)
Comment 3 James Forrester 2013-06-26 02:43:46 UTC

*** This bug has been marked as a duplicate of bug 49844 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links