Last modified: 2013-05-17 20:33:29 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 T50169, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48169 - Extension tags not escaped in WTS
Extension tags not escaped in WTS
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
serializer (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-06 18:26 UTC by Gabriel Wicke
Modified: 2013-05-17 20:33 UTC (History)
2 users (show)

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


Attachments

Description Gabriel Wicke 2013-05-06 18:26:34 UTC
Extension tags in plain text content should be escaped in the serializer:

echo 'some <section>foo</section>' | node parse --html2wt --extensions section
some <section>foo</section>

Expected output:
some <nowiki><section></nowiki>foo<nowiki></section></nowiki>

Alternative expected output:
&lt;section&gt;foo&lt;/section&gt;

Fixing this will break round-tripping of section tags, which are a special case as <section> is also an HTML5 tag. See bug 47936 for details on that aspect.
Comment 1 Gerrit Notification Bot 2013-05-17 17:57:01 UTC
Related URL: https://gerrit.wikimedia.org/r/64346 (Gerrit Change I33c81918918f661f94ea9178c9a208246f3d8374)
Comment 2 Gerrit Notification Bot 2013-05-17 18:57:50 UTC
https://gerrit.wikimedia.org/r/64346 (Gerrit Change I33c81918918f661f94ea9178c9a208246f3d8374) | 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