1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-26 10:03:34 +03:00
libxml2/result/HTML/xml-declaration-1.html.sax
Nick Wellnhofer e395946194 html: Reenable buggy detection of XML declarations
Switch to UTF-8 if a document starts with '<?xm' to match old behavior.
Also enable this check in the push parser.

Fixes #637.
2023-11-30 16:22:59 +01:00

14 lines
304 B
Plaintext

SAX.setDocumentLocator()
SAX.startDocument()
SAX.processingInstruction(xml, encoding="UTF-8")
SAX.startElement(html)
SAX.startElement(body)
SAX.startElement(p)
SAX.characters(&ouml;&auml;&uuml;&szlig;, 8)
SAX.endElement(p)
SAX.characters(
, 1)
SAX.endElement(body)
SAX.endElement(html)
SAX.endDocument()