Skip to content

openImpliesClose logic seems to be tripped up by intervening tags #1076

Closed
@vassudanagunta

Description

@vassudanagunta

Given the following input:

<p>one <b>bold <p>two

htmlparser2 generates events equivalent to the following:

<p>one <b>bold <p>two</p></b></p>

Notice how the opening of the second p does not implicitly close the first.

If you remove the intervening <b> tag:

<p>one bold <p>two

then htmlparser2 generates the correct events:

<p>one bold </p><p>two</p>

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixOut of scope for the project

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions