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