diff --git a/src/ecmascript/mujs/element.c b/src/ecmascript/mujs/element.c index d33ab80cd..764b85ff5 100644 --- a/src/ecmascript/mujs/element.c +++ b/src/ecmascript/mujs/element.c @@ -1302,7 +1302,7 @@ dump_element(struct string *buf, dom_node *node, bool toSortAttrs) //save_in_map(mapa, node, buf->length); /* Get string data and print element name */ - add_bytes_to_string(buf, dom_string_data(node_name), dom_string_byte_length(node_name)); + add_lowercase_to_string(buf, dom_string_data(node_name), dom_string_byte_length(node_name)); exc = dom_node_get_attributes(node, &attrs); @@ -1386,7 +1386,7 @@ walk_tree(struct string *buf, void *nod, bool start, bool toSortAttrs) if (exc == DOM_NO_ERR && node_name) { add_to_string(buf, "'); dom_string_unref(node_name); } diff --git a/src/ecmascript/quickjs/element.c b/src/ecmascript/quickjs/element.c index 3324a9d87..2c696f4a7 100644 --- a/src/ecmascript/quickjs/element.c +++ b/src/ecmascript/quickjs/element.c @@ -18,6 +18,7 @@ #include "dialogs/status.h" #include "document/document.h" #include "document/libdom/corestrings.h" +#include "document/libdom/doc.h" #include "document/libdom/mapa.h" #include "document/libdom/renderer2.h" #include "document/view.h" @@ -1351,7 +1352,7 @@ dump_element(struct string *buf, dom_node *node, bool toSortAttrs) //save_in_map(mapa, node, buf->length); /* Get string data and print element name */ - add_bytes_to_string(buf, dom_string_data(node_name), dom_string_byte_length(node_name)); + add_lowercase_to_string(buf, dom_string_data(node_name), dom_string_byte_length(node_name)); exc = dom_node_get_attributes(node, &attrs); @@ -1435,7 +1436,7 @@ walk_tree(struct string *buf, void *nod, bool start, bool toSortAttrs) if (exc == DOM_NO_ERR && node_name) { add_to_string(buf, "'); dom_string_unref(node_name); } diff --git a/src/ecmascript/spidermonkey/element.cpp b/src/ecmascript/spidermonkey/element.cpp index dfcfcb945..008b4166e 100644 --- a/src/ecmascript/spidermonkey/element.cpp +++ b/src/ecmascript/spidermonkey/element.cpp @@ -2512,7 +2512,7 @@ dump_element(struct string *buf, dom_node *node, bool toSortAttrs) //save_in_map(mapa, node, buf->length); /* Get string data and print element name */ - add_bytes_to_string(buf, dom_string_data(node_name), dom_string_byte_length(node_name)); + add_lowercase_to_string(buf, dom_string_data(node_name), dom_string_byte_length(node_name)); exc = dom_node_get_attributes(node, &attrs); @@ -2596,7 +2596,7 @@ walk_tree(struct string *buf, void *nod, bool start, bool toSortAttrs) if (exc == DOM_NO_ERR && node_name) { add_to_string(buf, "'); dom_string_unref(node_name); }