1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00

xmllint: Fix --html --sax element callbacks

We need the non-namespace callbacks for HTML.
This commit is contained in:
Nick Wellnhofer
2025-03-30 13:48:51 +02:00
parent 339e10feac
commit 5964fb7c5f

View File

@@ -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,