From 57abb7e471669e31e851743763774ddd6b7fafb4 Mon Sep 17 00:00:00 2001 From: Rupinder Singh Khokhar Date: Fri, 4 Jul 2014 04:23:35 +0530 Subject: small fix to handle the param tag open --- src/treebuilder/in_body.c | 5 ++++- 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 -- cgit v1.2.3