Last modified: 2013-06-10 21:45:12 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 T51405, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49405 - Parsoid: Reference tags not generating unless data-parsoid information is present
Parsoid: Reference tags not generating unless data-parsoid information is pre...
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-10 20:02 UTC by Ed Sanders
Modified: 2013-06-10 21:45 UTC (History)
1 user (show)

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


Attachments

Description Ed Sanders 2013-06-10 20:02:58 UTC
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...
Comment 1 Gerrit Notification Bot 2013-06-10 21:29:28 UTC
Related URL: https://gerrit.wikimedia.org/r/67888 (Gerrit Change I797b2bd87da10cd44c5eecd7b5c814777ea1a05e)
Comment 2 Gerrit Notification Bot 2013-06-10 21:43:07 UTC
https://gerrit.wikimedia.org/r/67888 (Gerrit Change I797b2bd87da10cd44c5eecd7b5c814777ea1a05e) | change APPROVED and MERGED [by jenkins-bot]

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


Navigation
Links