summaryrefslogtreecommitdiff
path: root/src/treebuilder/in_table.c
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-07-11 15:34:55 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-07-11 15:34:55 +0000
commit6e88372f3f7fe0f89df0ed47bde1024c7afcd546 (patch)
tree003f402236d881e73ea45077a8373a4b0d0ef04d /src/treebuilder/in_table.c
parentbaadfd3a8f06d72c3088ed9b44c6a327f67f57a3 (diff)
downloadlibhubbub-6e88372f3f7fe0f89df0ed47bde1024c7afcd546.tar.gz
libhubbub-6e88372f3f7fe0f89df0ed47bde1024c7afcd546.tar.bz2
- Refactor out a case-insensitive hubbub_string compare function
- Fix <input type="hidden"> handling in tables svn path=/trunk/hubbub/; revision=4603
Diffstat (limited to 'src/treebuilder/in_table.c')
-rw-r--r--src/treebuilder/in_table.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/treebuilder/in_table.c b/src/treebuilder/in_table.c
index 3cc487f..c5bb22e 100644
--- a/src/treebuilder/in_table.c
+++ b/src/treebuilder/in_table.c
@@ -49,9 +49,9 @@ static inline bool process_input_in_table(hubbub_treebuilder *treebuilder,
for (size_t i = 0; i < token->data.tag.n_attributes; i++) {
hubbub_attribute *attr = &token->data.tag.attributes[i];
- if (!hubbub_string_match(treebuilder->input_buffer +
- attr->name.data.off,
- attr->name.len, (uint8_t *) "hidden",
+ if (!hubbub_string_match_ci(treebuilder->input_buffer +
+ attr->value.data.off,
+ attr->value.len, (uint8_t *) "hidden",
SLEN("hidden"))) {
continue;
}
@@ -129,7 +129,7 @@ bool handle_in_table(hubbub_treebuilder *treebuilder,
if (type == COL) {
/* Insert colgroup and reprocess */
tag.name.type = HUBBUB_STRING_PTR;
- tag.name.data.ptr =
+ tag.name.data.ptr =
(const uint8_t *) "colgroup";
tag.name.len = SLEN("colgroup");