summaryrefslogtreecommitdiff
path: root/render/box_construct.c
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2012-07-15 01:39:25 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2012-07-15 01:39:25 +0100
commit1ecc94b187a94859fb347cd5f585d721e7d6e8be (patch)
tree43ba725e2954b5b163d856f7261f4e60874b3b3c /render/box_construct.c
parentfa3da41a941a149cff8e507d4882c84abc88f6e9 (diff)
downloadnetsurf-1ecc94b187a94859fb347cd5f585d721e7d6e8be.tar.gz
netsurf-1ecc94b187a94859fb347cd5f585d721e7d6e8be.tar.bz2
Use case insensitive string comparisions for nodes
Diffstat (limited to 'render/box_construct.c')
-rw-r--r--render/box_construct.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/render/box_construct.c b/render/box_construct.c
index 0044f6e21..b968e0e4f 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -1939,7 +1939,7 @@ bool box_object(BOX_SPECIAL_PARAMS)
return false;
}
- if (strcmp(dom_string_data(name), "param") != 0) {
+ if (strcasecmp(dom_string_data(name), "param") != 0) {
/* The first non-param child is the start of
* the alt html. Therefore, we should break
* out of this loop. */
@@ -2192,9 +2192,11 @@ bool box_create_frameset(struct content_html_frames *f, dom_node *n,
}
if (type != DOM_ELEMENT_NODE ||
- (strcmp(dom_string_data(name),
+ (strcasecmp(
+ dom_string_data(name),
"frame") != 0 &&
- strcmp(dom_string_data(name),
+ strcasecmp(
+ dom_string_data(name),
"frameset") != 0)) {
err = dom_node_get_next_sibling(c,
&next);
@@ -2225,7 +2227,7 @@ bool box_create_frameset(struct content_html_frames *f, dom_node *n,
return false;
}
- if (strcmp(dom_string_data(s), "frameset") == 0) {
+ if (strcasecmp(dom_string_data(s), "frameset") == 0) {
dom_string_unref(s);
frame->border = 0;
if (box_create_frameset(frame, c,
@@ -2699,14 +2701,14 @@ bool box_select(BOX_SPECIAL_PARAMS)
return false;
}
- if (strcmp(dom_string_data(name), "option") == 0) {
+ if (strcasecmp(dom_string_data(name), "option") == 0) {
dom_string_unref(name);
if (box_select_add_option(gadget, c) == false) {
dom_node_unref(c);
goto no_memory;
}
- } else if (strcmp(dom_string_data(name), "optgroup") == 0) {
+ } else if (strcasecmp(dom_string_data(name), "optgroup") == 0) {
dom_string_unref(name);
err = dom_node_get_first_child(c, &c2);
@@ -2725,7 +2727,7 @@ bool box_select(BOX_SPECIAL_PARAMS)
return false;
}
- if (strcmp(dom_string_data(c2_name),
+ if (strcasecmp(dom_string_data(c2_name),
"option") == 0) {
dom_string_unref(c2_name);