Last modified: 2013-12-13 20:21:23 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 T59650, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57650 - Parsoid: Things that look like <pre> tags (e.g. <President>) are treated as such
Parsoid: Things that look like <pre> tags (e.g. <President>) are treated as such
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-27 12:23 UTC by Roan Kattouw
Modified: 2013-12-13 20:21 UTC (History)
4 users (show)

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


Attachments

Description Roan Kattouw 2013-11-27 12:23:10 UTC
$ (echo ':Barack Obama <President> of the United States'; echo ':Joe Biden') | node js/tests/parse.js

WARNING: DSR inconsistency: cs/s mismatch for node: PRE s: 25; cs: 19
<body data-parsoid='{"dsr":[0,58,0,0]}'><dl data-parsoid='{"dsr":[0,58,0,0]}'><dd data-parsoid='{"dsr":[0,58,1,0]}'>Barack Obama <pre data-parsoid='{"stx":"html","a":{"sident":null},"sa":{"sident":""},"dsr":[14,58,11,6]}'> of the United States
:Joe Biden
</pre></dd></dl></body>

The expected result would be something like <dl><dd>Barack Obama &lt;President&gt; of the United States</dd><dd>Joe Biden</dd></dl> . There should be no pre tags, and the colon should not appear as literal text.
Comment 1 ssastry 2013-11-27 14:42:19 UTC
Whaaaaaaat? :-)
Comment 2 Gabriel Wicke 2013-12-04 02:16:31 UTC
Wow. Seems to be triggered by the unknown <President> tag. Could this be related to the recent pre work?
Comment 3 Gerrit Notification Bot 2013-12-04 05:21:41 UTC
Change 99031 had a related patch set uploaded by Arlolra:
Attributes, if present, should be preceded by a space

https://gerrit.wikimedia.org/r/99031
Comment 4 Gerrit Notification Bot 2013-12-04 17:42:58 UTC
Change 99031 merged by jenkins-bot:
Attributes, if present, should be preceded by a space

https://gerrit.wikimedia.org/r/99031
Comment 5 Gerrit Notification Bot 2013-12-13 19:55:39 UTC
Change 101333 had a related patch set uploaded by GWicke:
Attributes, if present, should be preceded by a space

https://gerrit.wikimedia.org/r/101333
Comment 6 Gerrit Notification Bot 2013-12-13 19:56:56 UTC
Change 101333 merged by GWicke:
Attributes, if present, should be preceded by a space

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

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


Navigation
Links