diff --git a/src/document/html/parser/parse.c b/src/document/html/parser/parse.c index 02684f577..3da452581 100644 --- a/src/document/html/parser/parse.c +++ b/src/document/html/parser/parse.c @@ -483,6 +483,7 @@ static struct element_info elements[] = { {"FIGURE", html_linebrk, NULL, 1, ET_NESTABLE }, {"FIXED", html_fixed, NULL, 0, ET_NESTABLE }, {"FONT", html_font, NULL, 0, ET_NESTABLE }, + {"FOOTER", html_linebrk, NULL, 1, ET_NON_NESTABLE}, {"FORM", html_form, NULL, 1, ET_NESTABLE }, {"FRAME", html_frame, NULL, 1, ET_NON_PAIRABLE}, {"FRAMESET", html_frameset, NULL, 1, ET_NESTABLE }, @@ -493,6 +494,7 @@ static struct element_info elements[] = { {"H5", html_h5, NULL, 2, ET_NON_NESTABLE}, {"H6", html_h6, NULL, 2, ET_NON_NESTABLE}, {"HEAD", html_head, NULL, 0, ET_NESTABLE }, + {"HEADER", html_linebrk, NULL, 1, ET_NON_NESTABLE}, {"HR", html_hr, NULL, 2, ET_NON_PAIRABLE}, {"HTML", html_html, html_html_close, 0, ET_NESTABLE }, {"I", html_italic, NULL, 0, ET_NESTABLE }, diff --git a/test/header.html b/test/header.html new file mode 100644 index 000000000..080644d3b --- /dev/null +++ b/test/header.html @@ -0,0 +1,11 @@ +
+
+ Header +
+ + Section + + +