diff options
author | Rupinder Singh Khokhar <rsk1coder99@gmail.com> | 2014-07-04 04:23:35 +0530 |
---|---|---|
committer | Rupinder Singh Khokhar <rsk1coder99@gmail.com> | 2014-08-01 21:44:31 +0530 |
commit | 57abb7e471669e31e851743763774ddd6b7fafb4 (patch) | |
tree | 8d6597aa1b6bc706adcbf75623640bb7758cea85 | |
parent | 95c40d62de1ce5960448ef856fd6cb1845ed03eb (diff) | |
download | libhubbub-57abb7e471669e31e851743763774ddd6b7fafb4.tar.gz libhubbub-57abb7e471669e31e851743763774ddd6b7fafb4.tar.bz2 |
small fix to handle the param tag open
-rw-r--r-- | src/treebuilder/in_body.c | 5 | ||||
-rw-r--r-- | test/data/tree-construction/INDEX | 6 |
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 |