https://bugzilla.wikimedia.org/show_bug.cgi?id=60340

       Web browser: ---
            Bug ID: 60340
           Summary: Parsoid wrong "red" wikilink handling in <gallery>
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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.

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

Reply via email to