Hash :
d7b287b9
Author :
Date :
2021-07-17T14:36:53
htmlParseComment: handle abruptly-closed comments See guidance provided on abrutply-closed comments here: https://html.spec.whatwg.org/multipage/parsing.html#parse-error-abrupt-closing-of-empty-comment
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
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-abrupt-closing-of-empty-comment')
SAX.characters(
Abruptly closed com, 43)
SAX.endElement(a)
SAX.characters(
, 7)
SAX.endElement(h3)
SAX.characters(
, 7)
SAX.startElement(div)
SAX.characters(
, 9)
SAX.error: Comment abruptly endedSAX.comment()
SAX.characters(the previous node should be an, 86)
SAX.endElement(div)
SAX.characters(
, 7)
SAX.startElement(div)
SAX.characters(
, 9)
SAX.error: Comment abruptly endedSAX.comment()
SAX.characters(the previous node should be an, 86)
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()