Last modified: 2014-01-28 23:57:30 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 T61266, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59266 - Cite: Parsoid's port should accept unclosed <references> tag and generate references
Cite: Parsoid's port should accept unclosed <references> tag and generate ref...
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: 2014-01-03 15:23 UTC by ssastry
Modified: 2014-01-28 23:57 UTC (History)
2 users (show)

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


Attachments

Description ssastry 2014-01-03 15:23:27 UTC
See example output below. Parsoid only accepts <references /> or <references>..<references/> but converts <references> to plain text. 

-----------

[subbu@earth lib] echo "a<ref>foo</ref>\n\n<references>" | node parse 
<body data-parsoid='{"dsr":[0,30,0,0]}'><p data-parsoid='{"dsr":[0,15,0,0]}'>a<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":"&lt;ref>foo&lt;/ref>","dsr":[1,15,5,6]}'><a href="#cite_note-1">[1]</a></span></p>

<p data-parsoid='{"dsr":[17,29,0,0]}'>&lt;references></p>
</body>

-----------

However, PHP parser seems to generate references output in this scenario. See https://is.wikipedia.org/wiki/Network_address_translation and the source there.
Comment 1 Gerrit Notification Bot 2014-01-28 22:50:35 UTC
Change 110098 had a related patch set uploaded by Arlolra:
Accept unclosed reference tags and generate

https://gerrit.wikimedia.org/r/110098
Comment 2 Gerrit Notification Bot 2014-01-28 23:57:05 UTC
Change 110098 merged by jenkins-bot:
Accept unclosed reference tags and generate

https://gerrit.wikimedia.org/r/110098

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


Navigation
Links