You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This logic appears to be incorrect as "HTML bogus comment" blocks would end whenever the first > is seen. Thus for value like > <div>xxx</div>, the parsing logic will be incorrect.
The text was updated successfully, but these errors were encountered:
I have verified with Gumbo and Parse5 such that the correct behavior for parsing input like <![CDATA[ > <div> xxx </div>]]> would be <![CDATA[ > (bogus comment) <div> (tag), xxx (text), </div> (tag) and ]]> (text).
In htmlparser2 it is parsed as <![CDATA[ > <div> xxx </div>]]> (bogus comment).
It looks like the parsing code is considering CDATA block as comment block when xmlMode is not set with
(as in 1123da8).
This logic appears to be incorrect as "HTML bogus comment" blocks would end whenever the first
>
is seen. Thus for value like> <div>xxx</div>
, the parsing logic will be incorrect.The text was updated successfully, but these errors were encountered: