diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-07-11 15:34:55 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-07-11 15:34:55 +0000 |
commit | 6e88372f3f7fe0f89df0ed47bde1024c7afcd546 (patch) | |
tree | 003f402236d881e73ea45077a8373a4b0d0ef04d /src/treebuilder/in_table.c | |
parent | baadfd3a8f06d72c3088ed9b44c6a327f67f57a3 (diff) | |
download | libhubbub-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.c | 8 |
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"); |