diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-07-11 14:33:44 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-07-11 14:33:44 +0000 |
commit | ba494e83259f7aae98ea4ad44a753fa9a406fb91 (patch) | |
tree | badd75556e19e831b0446403c4596b63fd254cef /src/treebuilder | |
parent | 480a852229e9616dc51976d0900e4d41e1e290ed (diff) | |
download | libhubbub-ba494e83259f7aae98ea4ad44a753fa9a406fb91.tar.gz libhubbub-ba494e83259f7aae98ea4ad44a753fa9a406fb91.tar.bz2 |
Fix "in caption" handling.
svn path=/trunk/hubbub/; revision=4597
Diffstat (limited to 'src/treebuilder')
-rw-r--r-- | src/treebuilder/in_caption.c | 8 |
1 files 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 || |