libxml2/result/HTML/comments2.html.sax
Nick Wellnhofer 3adb396d87 html: Parse bogus comments instead of ignoring them
Also treat XML processing instructions as bogus comments.
2024-10-06 18:13:05 +02:00

46 lines
919 B
Plaintext

SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElement(html)
SAX.characters(
, 3)
SAX.startElement(body)
SAX.characters(
, 5)
SAX.startElement(div)
SAX.characters(
, 7)
SAX.startElement(h3)
SAX.characters(
, 9)
SAX.startElement(a, href='https://html.spec.whatwg.org/multipage/parsing.html#parse-error-incorrectly-closed-comment')
SAX.characters(
Incorrectly closed , 81)
SAX.endElement(a)
SAX.characters(
, 7)
SAX.endElement(h3)
SAX.characters(
, 7)
SAX.startElement(div)
SAX.characters(
, 9)
SAX.comment(incorrectly closed comment)
SAX.startElement(span, id='under-test')
SAX.characters(whatwg guidance is that this s, 49)
SAX.endElement(span)
SAX.characters(
, 7)
SAX.endElement(div)
SAX.characters(
, 5)
SAX.endElement(div)
SAX.characters(
, 3)
SAX.endElement(body)
SAX.characters(
, 1)
SAX.endElement(html)
SAX.characters(
, 1)
SAX.endDocument()