From 5964fb7c5ff1d680fbe3fec1252743b9d79a1706 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sun, 30 Mar 2025 13:48:51 +0200 Subject: [PATCH] xmllint: Fix --html --sax element callbacks We need the non-namespace callbacks for HTML. --- xmllint.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xmllint.c b/xmllint.c index 19f31168c..c737b1cd6 100644 --- a/xmllint.c +++ b/xmllint.c @@ -1141,7 +1141,6 @@ endDocumentDebug(void *ctx) fprintf(stdout, "SAX.endDocument()\n"); } -#ifdef LIBXML_SAX1_ENABLED /** * startElementDebug: * @ctxt: An XML parser context @@ -1186,7 +1185,6 @@ endElementDebug(void *ctx, const xmlChar *name) return; fprintf(stdout, "SAX.endElement(%s)\n", (char *) name); } -#endif /* LIBXML_SAX1_ENABLED */ /** * charactersDebug: @@ -1536,8 +1534,8 @@ static const xmlSAXHandler debugSAX2Handler = { setDocumentLocatorDebug, startDocumentDebug, endDocumentDebug, - NULL, - NULL, + startElementDebug, /* for HTML */ + endElementDebug, referenceDebug, charactersDebug, ignorableWhitespaceDebug,