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

       Web browser: ---
            Bug ID: 49405
           Summary: Parsoid: Reference tags not generating unless
                    data-parsoid information is present
           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]
    Classification: Unclassified
   Mobile Platform: ---

Convert the following to wikitext:

<span about="#mwt2" class="reference"
data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;Foo&quot;},&quot;attrs&quot;:{}}"
id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"
data-parsoid="{&quot;src&quot;:&quot;<ref>Foo</ref>&quot;,&quot;dsr&quot;:[0,14,5,6]}"><a
href="#cite_note-1">[1]</a></span>

<span about="#mwt2" class="reference"
data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;Foo&quot;},&quot;attrs&quot;:{}}"
id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a
href="#cite_note-1">[1]</a></span>


(Note the second is identical to the first minus the data-parsoid attribute)

The output is:

<ref>Foo</ref>

<span class="reference"
data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;Foo&quot;},&quot;attrs&quot;:{}}"
id="cite_ref-1-0" rel="dc:references">[#cite_note-1
<nowiki>[1]</nowiki>]</span>

We should have a way of generating ref tags without having to populate
data-parsoid...

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