Hash :
29f5d20e
Author :
Date :
2020-08-03T17:36:05
htmlParseComment: treat `--!>` as if it closed the comment See guidance provided on incorrectly-closed comments here: https://html.spec.whatwg.org/multipage/parsing.html#parse-error-incorrectly-closed-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
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.error: Comment incorrectly closed by '--!>'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()