mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
try to fix xmlParseInNodeContext when operating on an HTML document.
* HTMLparser.c libxml.h parser.c: try to fix xmlParseInNodeContext when operating on an HTML document. Daniel
This commit is contained in:
8
parser.c
8
parser.c
@@ -11709,7 +11709,13 @@ xmlParseInNodeContext(xmlNodePtr node, const char *data, int datalen,
|
||||
ctxt->loadsubset |= XML_SKIP_IDS;
|
||||
}
|
||||
|
||||
xmlParseContent(ctxt);
|
||||
#ifdef LIBXML_HTML_ENABLED
|
||||
if (doc->type == XML_HTML_DOCUMENT_NODE)
|
||||
__htmlParseContent(ctxt);
|
||||
else
|
||||
#endif
|
||||
xmlParseContent(ctxt);
|
||||
|
||||
nsPop(ctxt, nsnr);
|
||||
if ((RAW == '<') && (NXT(1) == '/')) {
|
||||
xmlFatalErr(ctxt, XML_ERR_NOT_WELL_BALANCED, NULL);
|
||||
|
Reference in New Issue
Block a user