summaryrefslogtreecommitdiff
path: root/src/treebuilder/in_body.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2020-05-22 12:07:16 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2020-05-22 12:07:16 +0100
commit595df53b981454939c903182248bd9d983f380b3 (patch)
tree1061341553ce017effba2c0e4fc63faa5a830601 /src/treebuilder/in_body.c
parent4d0a0f5290c8dcc31fef17aaed0788bb1309f9bd (diff)
downloadlibhubbub-595df53b981454939c903182248bd9d983f380b3.tar.gz
libhubbub-595df53b981454939c903182248bd9d983f380b3.tar.bz2
Treebuilder: Add some new element names.
Diffstat (limited to 'src/treebuilder/in_body.c')
-rw-r--r--src/treebuilder/in_body.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/treebuilder/in_body.c b/src/treebuilder/in_body.c
index 5157e66..0e4184c 100644
--- a/src/treebuilder/in_body.c
+++ b/src/treebuilder/in_body.c
@@ -267,9 +267,10 @@ hubbub_error process_start_tag(hubbub_treebuilder *treebuilder,
type == DATAGRID || type == DETAILS ||
type == DIALOG || type == DIR ||
type == DIV || type == DL || type == FIELDSET ||
- type == FIGURE || type == FOOTER ||
- type == HEADER || type == MENU || type == NAV ||
- type == OL || type == P || type == SECTION ||
+ type == FIGCAPTION || type == FIGURE ||
+ type == FOOTER || type == HEADER || type == MAIN ||
+ type == MENU || type == NAV || type == OL ||
+ type == P || type == SECTION || type == SUMMARY ||
type == UL) {
err = process_container_in_body(treebuilder, token);
} else if (type == H1 || type == H2 || type == H3 ||
@@ -430,12 +431,14 @@ hubbub_error process_end_tag(hubbub_treebuilder *treebuilder,
* that wasn't ignored, reprocess this token */
err = process_0body_in_body(treebuilder);
} else if (type == ADDRESS || type == ARTICLE || type == ASIDE ||
- type == BLOCKQUOTE || type == CENTER || type == DIR ||
- type == DATAGRID || type == DIV || type == DL ||
- type == FIELDSET || type == FOOTER || type == HEADER ||
- type == LISTING || type == MENU || type == NAV ||
- type == OL || type == PRE || type == SECTION ||
- type == UL) {
+ type == BLOCKQUOTE || type == CENTER ||
+ type == DETAILS || type == DIALOG || type == DIR ||
+ type == DATAGRID || type == DIV || type == DL ||
+ type == FIELDSET || type == FIGCAPTION ||
+ type == FIGURE || type == FOOTER || type == HEADER ||
+ type == LISTING || type == MAIN|| type == MENU ||
+ type == NAV || type == OL || type == PRE ||
+ type == SECTION || type == SUMMARY || type == UL) {
err = process_0container_in_body(treebuilder, type);
} else if (type == FORM) {
err = process_0form_in_body(treebuilder);