openImpliesClose logic seems to be tripped up by intervening tags

This issue has been tracked since 2022-01-13.

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>
fb55 wrote this answer on 2022-04-23

"Fixed" by #1147

More Details About Repo
Owner Name fb55
Repo Name htmlparser2
Full Name fb55/htmlparser2
Language TypeScript
Created Date 2011-08-27
Updated Date 2023-03-19
Star Count 3793
Watcher Count 50
Fork Count 370
Issue Count 4


Issue Title Created Date Updated Date