1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

fixed serialization of script and style when they are not lowercase (i.e.

* HTMLtree.c: fixed serialization of script and style when
  they are not lowercase (i.e. added using the API to the tree).
Daniel
This commit is contained in:
Daniel Veillard
2002-10-16 15:23:26 +00:00
parent 2fd8542ca0
commit 44892f73dd
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Wed Oct 16 17:18:42 CEST 2002 Daniel Veillard <daniel@veillard.com>
* HTMLtree.c: fixed serialization of script and style when
they are not lowercase (i.e. added using the API to the tree).
Wed Oct 16 16:31:05 CEST 2002 Daniel Veillard <daniel@veillard.com> Wed Oct 16 16:31:05 CEST 2002 Daniel Veillard <daniel@veillard.com>
* valid.c: make xmlValidateDocument emit a warning msg if there * valid.c: make xmlValidateDocument emit a warning msg if there

View File

@ -492,8 +492,8 @@ htmlNodeDumpFormat(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur,
if (((cur->name == (const xmlChar *)xmlStringText) || if (((cur->name == (const xmlChar *)xmlStringText) ||
(cur->name != (const xmlChar *)xmlStringTextNoenc)) && (cur->name != (const xmlChar *)xmlStringTextNoenc)) &&
((cur->parent == NULL) || ((cur->parent == NULL) ||
((!xmlStrEqual(cur->parent->name, BAD_CAST "script")) && ((xmlStrcasecmp(cur->parent->name, BAD_CAST "script")) &&
(!xmlStrEqual(cur->parent->name, BAD_CAST "style"))))) { (xmlStrcasecmp(cur->parent->name, BAD_CAST "style"))))) {
xmlChar *buffer; xmlChar *buffer;
buffer = xmlEncodeEntitiesReentrant(doc, cur->content); buffer = xmlEncodeEntitiesReentrant(doc, cur->content);
@ -983,8 +983,8 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
if (((cur->name == (const xmlChar *)xmlStringText) || if (((cur->name == (const xmlChar *)xmlStringText) ||
(cur->name != (const xmlChar *)xmlStringTextNoenc)) && (cur->name != (const xmlChar *)xmlStringTextNoenc)) &&
((cur->parent == NULL) || ((cur->parent == NULL) ||
((!xmlStrEqual(cur->parent->name, BAD_CAST "script")) && ((xmlStrcasecmp(cur->parent->name, BAD_CAST "script")) &&
(!xmlStrEqual(cur->parent->name, BAD_CAST "style"))))) { (xmlStrcasecmp(cur->parent->name, BAD_CAST "style"))))) {
xmlChar *buffer; xmlChar *buffer;
buffer = xmlEncodeEntitiesReentrant(doc, cur->content); buffer = xmlEncodeEntitiesReentrant(doc, cur->content);