mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
fix to the fix for #141864 from Paul Elseth apply fix from David Gatwood
* xmlIO.c: fix to the fix for #141864 from Paul Elseth * HTMLparser.c result/HTML/doc3.htm: apply fix from David Gatwood for #141195 about text between comments. Daniel
This commit is contained in:
@@ -2027,6 +2027,8 @@ static int areBlanks(htmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
|
||||
return(1);
|
||||
if (ctxt->node == NULL) return(0);
|
||||
lastChild = xmlGetLastChild(ctxt->node);
|
||||
while ((lastChild) && (lastChild->type == XML_COMMENT_NODE))
|
||||
lastChild = lastChild->prev;
|
||||
if (lastChild == NULL) {
|
||||
if ((ctxt->node->type != XML_ELEMENT_NODE) &&
|
||||
(ctxt->node->content != NULL)) return(0);
|
||||
|
||||
Reference in New Issue
Block a user