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:
15
HTMLparser.c
15
HTMLparser.c
@@ -3753,10 +3753,8 @@ htmlParseReference(htmlParserCtxtPtr ctxt) {
|
||||
/**
|
||||
* htmlParseContent:
|
||||
* @ctxt: an HTML parser context
|
||||
* @name: the node name
|
||||
*
|
||||
* Parse a content: comment, sub-element, reference or text.
|
||||
*
|
||||
*/
|
||||
|
||||
static void
|
||||
@@ -3874,6 +3872,19 @@ htmlParseContent(htmlParserCtxtPtr ctxt) {
|
||||
if (currentNode != NULL) xmlFree(currentNode);
|
||||
}
|
||||
|
||||
/**
|
||||
* htmlParseContent:
|
||||
* @ctxt: an HTML parser context
|
||||
*
|
||||
* Parse a content: comment, sub-element, reference or text.
|
||||
*/
|
||||
|
||||
void
|
||||
__htmlParseContent(void *ctxt) {
|
||||
if (ctxt != NULL)
|
||||
htmlParseContent((htmlParserCtxtPtr) ctxt);
|
||||
}
|
||||
|
||||
/**
|
||||
* htmlParseElement:
|
||||
* @ctxt: an HTML parser context
|
||||
|
Reference in New Issue
Block a user