1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[ecmascript] More add_lowercase_to_string

This commit is contained in:
Witold Filipczyk 2024-05-08 15:37:00 +02:00
parent abc307e86b
commit ea2dbb05e2
3 changed files with 7 additions and 6 deletions

View File

@ -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, "</");
add_bytes_to_string(buf, dom_string_data(node_name), dom_string_length(node_name));
add_lowercase_to_string(buf, dom_string_data(node_name), dom_string_length(node_name));
add_char_to_string(buf, '>');
dom_string_unref(node_name);
}

View File

@ -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, "</");
add_bytes_to_string(buf, dom_string_data(node_name), dom_string_length(node_name));
add_lowercase_to_string(buf, dom_string_data(node_name), dom_string_length(node_name));
add_char_to_string(buf, '>');
dom_string_unref(node_name);
}

View File

@ -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, "</");
add_bytes_to_string(buf, dom_string_data(node_name), dom_string_length(node_name));
add_lowercase_to_string(buf, dom_string_data(node_name), dom_string_length(node_name));
add_char_to_string(buf, '>');
dom_string_unref(node_name);
}