1SAX.setDocumentLocator() 2SAX.startDocument() 3SAX.startElement(html) 4SAX.characters( 5 , 3) 6SAX.startElement(body) 7SAX.characters( 8 , 5) 9SAX.startElement(div) 10SAX.characters( 11 , 7) 12SAX.startElement(h3) 13SAX.characters( 14 , 9) 15SAX.startElement(a, href='https://html.spec.whatwg.org/multipage/parsing.html#parse-error-incorrectly-closed-comment') 16SAX.characters( 17 Incorrectly closed , 81) 18SAX.endElement(a) 19SAX.characters( 20 , 7) 21SAX.endElement(h3) 22SAX.characters( 23 , 7) 24SAX.startElement(div) 25SAX.characters( 26 , 9) 27SAX.error: Comment incorrectly closed by '--!>'SAX.comment(incorrectly closed comment) 28SAX.startElement(span, id='under-test') 29SAX.characters(whatwg guidance is that this s, 49) 30SAX.endElement(span) 31SAX.characters( 32 , 7) 33SAX.endElement(div) 34SAX.characters( 35 , 5) 36SAX.endElement(div) 37SAX.characters( 38 , 3) 39SAX.endElement(body) 40SAX.characters( 41, 1) 42SAX.endElement(html) 43SAX.characters( 44, 1) 45SAX.endDocument() 46