Last modified: 2014-04-15 19:56: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 T65143, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63143 - Misnested <a> / <i> tags
Misnested <a> / <i> tags
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: C. Scott Ananian
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-26 20:37 UTC by C. Scott Ananian
Modified: 2014-04-15 19:56 UTC (History)
2 users (show)

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


Attachments

Description C. Scott Ananian 2014-03-26 20:37:55 UTC
This is the "Bug 2702: Mismatched <i>, <b> and <a> tags are invalid" parser test case.

$ echo "''[http://example.com text'']" | tests/parse.js --normalize
<body><p><i><a href="http://example.com">text<i></i></a></i></p></body>

The nesting of a <i> inside another <i> tag is... suboptimal.
Comment 1 C. Scott Ananian 2014-03-26 20:39:55 UTC
This might be related to the general <a>/<i>/<b> issues in bug 47326 (or it might be its own thing).
Comment 2 C. Scott Ananian 2014-04-15 19:56:40 UTC
There is also this test case:

!! test
External link containing double-single-quotes in text '' (bug 4598 sanity check)
!! wikitext
Some [http://example.com/ pretty ''italics'' and stuff]!
!! html
<p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
</p>
!! end

where we currently emit:

<p><i>Some <a href="http://example.com/">pretty <i>italics</i> and stuff</a>!</i></p>

again with the <i> nested inside the <i>.

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


Navigation
Links