Last modified: 2013-07-16 18:04:40 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 T53081, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51081 - Incorrect handling of nested <em>, <strong>, <q>, <ruby>, and <bdo>
Incorrect handling of nested <em>, <strong>, <q>, <ruby>, and <bdo>
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.22.0
All All
: Low normal (vote)
: ---
Assigned To: C. Scott Ananian
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-10 00:39 UTC by C. Scott Ananian
Modified: 2013-07-16 18:04 UTC (History)
0 users

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


Attachments

Description C. Scott Ananian 2013-07-10 00:39:23 UTC
This is related to bug 41545.  See also gerrit change I194167f3c0621394ab4fb40e242711ccb86615ae

The parser, when given "<em>X<em>Y</em>Z</em>" emits "<p><em>X&lt;em&gt;Y</em>Z&lt;/em&gt;</p>".  The same bogus escaping also occurs for <b>.
Comment 1 C. Scott Ananian 2013-07-10 16:56:24 UTC
Note that the HTML spec (http://www.w3.org/TR/html5/text-level-semantics.html) gives an explicit meaning for nested <em>, <strong>, <q>, <ruby>, and <bdo>.

There are other nestable tags (<b>, <i>, <s>, <u>, <cite>, <dfn>, <abbr>, <time>, <code>, <mark>, <rt>, <rp>, <bdi>) which I've chosen not to fix since the spec allows but does not give semantics for them.
Comment 2 Gerrit Notification Bot 2013-07-10 17:08:07 UTC
Change 72981 had a related patch set uploaded by Cscott:
Fix incorrect escaping of nested <em>, <strong>, <q>, <ruby>, and <bdo>

https://gerrit.wikimedia.org/r/72981
Comment 3 Gerrit Notification Bot 2013-07-16 16:20:59 UTC
Change 72981 merged by jenkins-bot:
Fix incorrect escaping of nested <em>, <strong>, <q>, <ruby>, and <bdo>

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

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


Navigation
Links