pTag is too strict
Marckon opened this issue · 1 comments
Marckon commented
it seems like many tags have been limited to not be contained each other.
https://github.com/fb55/htmlparser2/blob/24470b874800b508b06ddca249530063cbe6f759/src/Parser.ts#L22C6-L22C6
if I want to parse <p><span>123</span><div style="display:inline">456</div></p>
, the div
element will not be p
's child
fb55 commented
div
tags can be children of p
tags; only p
tags cannot be children of p
tags.