Last modified: 2014-02-06 20:10:03 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 T62340, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60340 - Parsoid wrong "red" wikilink handling in <gallery>
Parsoid wrong "red" wikilink handling in <gallery>
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-22 14:27 UTC by Kelson [Emmanuel Engelhart]
Modified: 2014-02-06 20:10 UTC (History)
3 users (show)

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


Attachments

Description Kelson [Emmanuel Engelhart] 2014-01-22 14:27:10 UTC
The Parsoid does not give the correct HTML/RDF output by parsing a <gallery> media description, if this one includes a "red" wikilink.

For example, this wikitext:
<gallery>
File:View from connors hill panorama.jpg|[[Tagada Tagada]]
</gallery>

generates this:
<a href="/w/index.php?title=Tagada_Tagada&amp;action=edit&amp;redlink=1" class="new" title="Tagada Tagada (page does not exist)" data-parsoid="{}">Tagada Tagada</a>

...and it should generate something like this (output of "[[Tagada Tagada]]"):
<a rel="mw:WikiLink" href="./Tagada_Tagada" data-parsoid='{"stx":"simple","a":{"href":"./Tagada_Tagada"},"sa":{"href":"Tagada Tagada"},"dsr":[11,28,2,2]}'>Tagada Tagada</a>

At least, the <a> "href" attribute is wrong.
Comment 1 Gabriel Wicke 2014-02-06 20:10:03 UTC
We currently call out to the PHP gallery extension, which delivers the red link.

Wikia is working on a port of the gallery extension to Parsoid, which will use Parsoid HTML for gallery contents too. I'm hoping that they are soon contributing this code back.

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


Navigation
Links