diff options
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | HTMLtree.c | 12 | ||||
| -rw-r--r-- | doc/xml.html | 8 |
3 files changed, 21 insertions, 7 deletions
@@ -1,4 +1,10 @@ -Tue Jun 5 19:11:02 CEST 2001 Bjorn Reese <breese@users.sourceforge.net> +Tue Jun 5 22:54:21 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr> + + * HTMLtree.c: trying to close bug #55772 escaping in script + elements + * doc/xml.html: suggest to send mail to the list + +Tue Jun 5 19:11:02 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr> * error.c: attempt to fix the xmlGetVarStr breakage once and for good. Use a macro and based on the solution provided in @@ -473,8 +473,10 @@ htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur) { } if (cur->type == HTML_TEXT_NODE) { if (cur->content != NULL) { - if ((cur->name == xmlStringText) || - (cur->name != xmlStringTextNoenc)) { + if (((cur->name == xmlStringText) || + (cur->name != xmlStringTextNoenc)) && + ((cur->parent == NULL) || + (!xmlStrEqual(cur->parent->name, BAD_CAST "script")))) { xmlChar *buffer; #ifndef XML_USE_BUFFER_CONTENT @@ -889,8 +891,10 @@ htmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, } if (cur->type == HTML_TEXT_NODE) { if (cur->content != NULL) { - if ((cur->name == xmlStringText) || - (cur->name != xmlStringTextNoenc)) { + if (((cur->name == xmlStringText) || + (cur->name != xmlStringTextNoenc)) && + ((cur->parent == NULL) || + (!xmlStrEqual(cur->parent->name, BAD_CAST "script")))) { xmlChar *buffer; #ifndef XML_USE_BUFFER_CONTENT diff --git a/doc/xml.html b/doc/xml.html index e8d14305..ee125f59 100644 --- a/doc/xml.html +++ b/doc/xml.html @@ -1,3 +1,5 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" + "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>The XML C library for Gnome</title> @@ -154,7 +156,9 @@ Web</a> page and follow the instructions.</p> <p>Alternatively, you can just send the bug to the <a href="mailto:xml@gnome.org">xml@gnome.org</a> list; if it's really libxml -related I will approve it..</p> +related I will approve it.. Please do not send me mail directly especially for +portability problem, it makes things really harder to track and in some cases +I'm not the best person to answer a given question, ask the list instead.</p> <p>Of course, bugs reported with a suggested patch for fixing them will probably be processed faster.</p> @@ -1555,6 +1559,6 @@ Gnome CVS base under gnome-xml/example</p> <p><a href="mailto:Daniel.Veillard@imag.fr">Daniel Veillard</a></p> -<p>$Id: xml.html,v 1.84 2001/05/19 15:13:15 veillard Exp $</p> +<p>$Id: xml.html,v 1.85 2001/06/01 10:11:57 veillard Exp $</p> </body> </html> |
