diff --git a/ChangeLog b/ChangeLog index 893882ff..f78f30ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue May 11 11:55:59 CEST 2004 Daniel Veillard + + * 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. + Tue May 11 23:04:47 HKT 2004 William Brack * xmlschemas.c, include/libxml/schemasInternals.h, diff --git a/HTMLparser.c b/HTMLparser.c index bf671a11..2e7984d4 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -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); diff --git a/result/HTML/doc3.htm b/result/HTML/doc3.htm index fad60cbc..ef6fddd4 100644 --- a/result/HTML/doc3.htm +++ b/result/HTML/doc3.htm @@ -367,7 +367,8 @@ eval("page" + id + " = window.open(URL, '" + id + "', 'toolbars=0, scrollbars=0,
- -->
+
--> +

Newsletter


@@ -384,7 +385,8 @@ eval("page" + id + " = window.open(URL, '" + id + "', 'toolbars=0, scrollbars=0, -->
- -
+ +

PC Price Search

diff --git a/xmlIO.c b/xmlIO.c index cb67fb83..1093622e 100644 --- a/xmlIO.c +++ b/xmlIO.c @@ -2230,8 +2230,8 @@ xmlOutputBufferCreateFilename(const char *URI, puri = xmlParseURI(URI); if (puri != NULL) { - if ((puri->scheme == NULL) || - (xmlStrEqual(BAD_CAST puri->scheme, BAD_CAST "file"))) + if ((puri->scheme != NULL) && + (!xmlStrEqual(BAD_CAST puri->scheme, BAD_CAST "file"))) is_file_uri = 0; /* * try to limit the damages of the URI unescaping code.