-
-
Notifications
You must be signed in to change notification settings - Fork 396
Closed
Labels
wontfixOut of scope for the projectOut of scope for the project
Description
Given the following input:
plain <b>bold <i>italic bold </b>italic </i>plainhtmlparser2 generates events equivalent to the following:
plain <b>bold <i>italic bold </i></b>italic plainwhereas the HTML5 spec (and de facto HTML behavior pre HTML5) interprets it as the following:
plain <b>bold <i>italic bold </i></b><i>italic </i>plainYou can confirm this behavior by opening the attached file in your browser and then looking at the rendered results as well as inspecting the DOM. This is also specified by the HTML Living Standard: 13.2.10.1 Misnested tags: <b><i></b></i>. See also https://stackoverflow.com/a/8766163/8910547
expected behavior
The current behavior with the following changes:
- Generate an implied
<i>open tag event between the</b>close tag and "italic " text events. - Do NOT skip the
</i>close event between the "italic " and "plain" text events.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
wontfixOut of scope for the projectOut of scope for the project