mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
avoid ID error message if using HTML_PARSE_NOERROR should fix #130762
* valid.c HTMLparser.c: avoid ID error message if using HTML_PARSE_NOERROR should fix #130762 Daniel
This commit is contained in:
2
valid.c
2
valid.c
@@ -2477,7 +2477,7 @@ xmlAddID(xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value,
|
||||
/*
|
||||
* The id is already defined in this DTD.
|
||||
*/
|
||||
if (ctxt != NULL) {
|
||||
if ((ctxt != NULL) && (ctxt->error != NULL)) {
|
||||
xmlErrValidNode(ctxt, attr->parent, XML_DTD_ID_REDEFINED,
|
||||
"ID %s already defined\n",
|
||||
value, NULL, NULL);
|
||||
|
Reference in New Issue
Block a user