Open panthony opened 1 year ago
Probably a similar issue than https://github.com/jhy/jsoup/issues/1483 except here it comment pretty much all the HTML.
Yes I believe @panthony is right -- the browsers aren't treating this as a comment but as attributes on the div tag, like:
<div
Attr: <!--
Attr: id = hidden
Attr: --
>
Will need to revisit #1483, either implement my idea or scrap the attempt to handle missing >
and just hard follow the spec.
Hi,
I encountered a case where JSoup differs from what browsers (Chrome, Firefox Safari) do.
Using this piece of HTML on try jsoup:
Jsoup will produce:
Commenting the rest of the body whereas all major navigators will escape the comment character and shows the 3 titles.