summaryrefslogtreecommitdiff
path: root/src/treebuilder/in_table.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-10 22:17:58 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-10 22:17:58 +0000
commit67169ed4d74fcbbeb0177de132d4b1ec7964cba7 (patch)
tree82820cef9afb7302b83aaaeb32aa6c5bbec5c52a /src/treebuilder/in_table.c
parent691daee99f556f427e78b2220f3bbfeb6ea36204 (diff)
downloadlibhubbub-67169ed4d74fcbbeb0177de132d4b1ec7964cba7.tar.gz
libhubbub-67169ed4d74fcbbeb0177de132d4b1ec7964cba7.tar.bz2
Sync treebuilder with spec
svn path=/trunk/hubbub/; revision=6764
Diffstat (limited to 'src/treebuilder/in_table.c')
-rw-r--r--src/treebuilder/in_table.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/treebuilder/in_table.c b/src/treebuilder/in_table.c
index 0c97470..ac5e6c5 100644
--- a/src/treebuilder/in_table.c
+++ b/src/treebuilder/in_table.c
@@ -56,15 +56,7 @@ static inline bool process_input_in_table(hubbub_treebuilder *treebuilder,
}
/** \todo parse error */
- insert_element(treebuilder, &token->data.tag);
-
- if (treebuilder->context.form_element != NULL) {
- treebuilder->tree_handler->form_associate(
- treebuilder->tree_handler->ctx,
- treebuilder->context.form_element,
- treebuilder->context.element_stack[
- treebuilder->context.current_node].node);
- }
+ insert_element(treebuilder, &token->data.tag, true);
return true;
}
@@ -125,7 +117,7 @@ hubbub_error handle_in_table(hubbub_treebuilder *treebuilder,
treebuilder->context.current_node].node,
treebuilder->context.current_node);
- insert_element(treebuilder, &token->data.tag);
+ insert_element(treebuilder, &token->data.tag, true);
treebuilder->context.mode = IN_CAPTION;
} else if (type == COLGROUP || type == COL) {
hubbub_tag tag = token->data.tag;
@@ -141,7 +133,7 @@ hubbub_error handle_in_table(hubbub_treebuilder *treebuilder,
}
clear_stack_table_context(treebuilder);
- insert_element(treebuilder, &tag);
+ insert_element(treebuilder, &tag, true);
treebuilder->context.mode = IN_COLUMN_GROUP;
} else if (type == TBODY || type == TFOOT || type == THEAD ||
type == TD || type == TH || type == TR) {
@@ -158,7 +150,7 @@ hubbub_error handle_in_table(hubbub_treebuilder *treebuilder,
}
clear_stack_table_context(treebuilder);
- insert_element(treebuilder, &tag);
+ insert_element(treebuilder, &tag, true);
treebuilder->context.mode = IN_TABLE_BODY;
} else if (type == TABLE) {
/** \todo parse error */