summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-07-03 22:53:35 (GMT)
committer Rupinder Singh Khokhar <rsk1coder99@gmail.com>2014-08-01 16:14:31 (GMT)
commit57abb7e471669e31e851743763774ddd6b7fafb4 (patch)
tree8d6597aa1b6bc706adcbf75623640bb7758cea85
parent95c40d62de1ce5960448ef856fd6cb1845ed03eb (diff)
downloadlibhubbub-57abb7e471669e31e851743763774ddd6b7fafb4.tar.gz
libhubbub-57abb7e471669e31e851743763774ddd6b7fafb4.tar.bz2
small fix to handle the param tag open
-rw-r--r--src/treebuilder/in_body.c5
-rw-r--r--test/data/tree-construction/INDEX6
2 files changed, 7 insertions, 4 deletions
diff --git a/src/treebuilder/in_body.c b/src/treebuilder/in_body.c
index be7071b..c9d1780 100644
--- a/src/treebuilder/in_body.c
+++ b/src/treebuilder/in_body.c
@@ -331,7 +331,7 @@ hubbub_error process_start_tag(hubbub_treebuilder *treebuilder,
} else if (type == AREA || type == BASEFONT ||
type == BGSOUND || type == BR ||
type == EMBED || type == IMG || type == INPUT ||
- type == PARAM || type == WBR) {
+ type == WBR) {
err = reconstruct_active_formatting_list(treebuilder);
if (err != HUBBUB_OK)
return err;
@@ -406,6 +406,9 @@ hubbub_error process_start_tag(hubbub_treebuilder *treebuilder,
type == TD || type == TFOOT || type == TH ||
type == THEAD || type == TR) {
/** \todo parse error */
+ } else if (type == PARAM) {
+ err = insert_element(treebuilder, &token->data.tag, false);
+ /** \todo ack sc flag */
} else {
err = process_phrasing_in_body(treebuilder, token);
}
diff --git a/test/data/tree-construction/INDEX b/test/data/tree-construction/INDEX
index 643fcc6..cc639b5 100644
--- a/test/data/tree-construction/INDEX
+++ b/test/data/tree-construction/INDEX
@@ -46,9 +46,9 @@ tests1.dat html5lib treebuilder tests
#tests26.dat NA
#tests2.dat NA
#tests3.dat NA
-tests4.dat NA
-tests5.dat NA
-#tests6.dat NA
+tests4.dat html5lib treebuilder tests
+tests5.dat html5lib treebuilder tests
+tests6.dat html5lib treebuilder tests
#tests7.dat NA
#tests8.dat NA
#tests9.dat NA