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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user