aboutsummaryrefslogtreecommitdiffstats
path: root/HTMLtree.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-10-16 15:23:26 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-10-16 15:23:26 +0000
commit44892f73ddbcd0e939a6405c4c752498c877b09d (patch)
tree326991451972803aa467f9c8e543bafdb79a934b /HTMLtree.c
parent2fd8542ca0a1a79cba012670f14e0e201c340fbf (diff)
downloadandroid_external_libxml2-44892f73ddbcd0e939a6405c4c752498c877b09d.tar.gz
android_external_libxml2-44892f73ddbcd0e939a6405c4c752498c877b09d.tar.bz2
android_external_libxml2-44892f73ddbcd0e939a6405c4c752498c877b09d.zip
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
Diffstat (limited to 'HTMLtree.c')
-rw-r--r--HTMLtree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/HTMLtree.c b/HTMLtree.c
index cbd0ef0c..7650184b 100644
--- a/HTMLtree.c
+++ b/HTMLtree.c
@@ -492,8 +492,8 @@ htmlNodeDumpFormat(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur,
if (((cur->name == (const xmlChar *)xmlStringText) ||
(cur->name != (const xmlChar *)xmlStringTextNoenc)) &&
((cur->parent == NULL) ||
- ((!xmlStrEqual(cur->parent->name, BAD_CAST "script")) &&
- (!xmlStrEqual(cur->parent->name, BAD_CAST "style"))))) {
+ ((xmlStrcasecmp(cur->parent->name, BAD_CAST "script")) &&
+ (xmlStrcasecmp(cur->parent->name, BAD_CAST "style"))))) {
xmlChar *buffer;
buffer = xmlEncodeEntitiesReentrant(doc, cur->content);
@@ -983,8 +983,8 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
if (((cur->name == (const xmlChar *)xmlStringText) ||
(cur->name != (const xmlChar *)xmlStringTextNoenc)) &&
((cur->parent == NULL) ||
- ((!xmlStrEqual(cur->parent->name, BAD_CAST "script")) &&
- (!xmlStrEqual(cur->parent->name, BAD_CAST "style"))))) {
+ ((xmlStrcasecmp(cur->parent->name, BAD_CAST "script")) &&
+ (xmlStrcasecmp(cur->parent->name, BAD_CAST "style"))))) {
xmlChar *buffer;
buffer = xmlEncodeEntitiesReentrant(doc, cur->content);