From ba494e83259f7aae98ea4ad44a753fa9a406fb91 Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Fri, 11 Jul 2008 14:33:44 +0000 Subject: Fix "in caption" handling. svn path=/trunk/hubbub/; revision=4597 --- src/treebuilder/in_caption.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/treebuilder/in_caption.c b/src/treebuilder/in_caption.c index d6a1972..312a6f1 100644 --- a/src/treebuilder/in_caption.c +++ b/src/treebuilder/in_caption.c @@ -37,7 +37,7 @@ bool handle_in_caption(hubbub_treebuilder *treebuilder, type == TBODY || type == TD || type == TFOOT || type == TH || type == THEAD || type == TR) { /** \todo parse error */ - handled = true; + reprocess = true; } else { /* Process as if "in body" */ handle_in_body(treebuilder, token); @@ -49,9 +49,11 @@ bool handle_in_caption(hubbub_treebuilder *treebuilder, element_type type = element_type_from_name(treebuilder, &token->data.tag.name); - if (type == CAPTION || type == TABLE) { - /** \todo parse error if type == TABLE */ + if (type == CAPTION) { handled = true; + } else if (type == TABLE) { + /** \todo parse error if type == TABLE */ + reprocess = true; } else if (type == BODY || type == COL || type == COLGROUP || type == HTML || type == TBODY || type == TD || type == TFOOT || type == TH || -- cgit v1.2.3