mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
excluded a few nodes (with no content) from the string check routine.
* debugXML.c: excluded a few nodes (with no content) from the string check routine.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 15 11:22:48 PDT 2004 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
|
* debugXML.c: excluded a few nodes (with no content) from the
|
||||||
|
string check routine.
|
||||||
|
|
||||||
Fri Oct 15 10:48:30 EDT 2004 Daniel Veillard <daniel@veillard.com>
|
Fri Oct 15 10:48:30 EDT 2004 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* debugXML.c include/libxml/xmlerror.h: added UTF-8 string checking,
|
* debugXML.c include/libxml/xmlerror.h: added UTF-8 string checking,
|
||||||
|
12
debugXML.c
12
debugXML.c
@ -63,8 +63,9 @@ xmlCtxtDumpInitCtxt(xmlDebugCtxtPtr ctxt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
xmlCtxtDumpCleanCtxt(xmlDebugCtxtPtr ctxt)
|
xmlCtxtDumpCleanCtxt(xmlDebugCtxtPtr ctxt ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
|
/* remove the ATTRIBUTE_UNUSED when this is added */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -283,10 +284,13 @@ xmlCtxtGenericNodeCheck(xmlDebugCtxtPtr ctxt, xmlNodePtr node) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((node->type != XML_ELEMENT_NODE) &&
|
if ((node->type != XML_ELEMENT_NODE) &&
|
||||||
(node->type != XML_HTML_DOCUMENT_NODE) &&
|
(node->type != XML_ATTRIBUTE_NODE) &&
|
||||||
(node->type != XML_DOCUMENT_NODE)) {
|
(node->type != XML_ATTRIBUTE_DECL) &&
|
||||||
|
(node->type != XML_DTD_NODE) &&
|
||||||
|
(node->type != XML_HTML_DOCUMENT_NODE) &&
|
||||||
|
(node->type != XML_DOCUMENT_NODE)) {
|
||||||
if (node->content != NULL)
|
if (node->content != NULL)
|
||||||
xmlCtxtCheckString(ctxt, (const char *) node->content);
|
xmlCtxtCheckString(ctxt, (const xmlChar *) node->content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user