html5lib / html5lib-tests

Testsuite data for html5lib, including the de-facto standard HTML parsing tests.
MIT License
188 stars 61 forks source link

"hgroup" and "menu" test cases and HTML 5.2 #120

Closed peteroupc closed 1 year ago

peteroupc commented 6 years ago

In blocks, the following test cases no longer correspond to HTML 5.2, since hgroup is now an ordinary element, and not a "special" element.

<!doctype html><p>foo<hgroup>bar<p>baz

In that test case, an implied </p> end tag is no longer generated before the <hgroup> start tag.

<!doctype html><hgroup><p>foo</hgroup>bar

In that test case, the </hgroup> end tag is now ignored since the current node at that end tag is <p>, which is special.

In addition, two test cases involving <menu> no longer correspond to HTML 5.2, for the same reason as with <hgroup>:

<!doctype html><p>foo<menu>bar<p>baz
<!doctype html><menu><p>foo</menu>bar
peteroupc commented 6 years ago

This also affects the following <menu> test case (in template):

<body><template><i><menu>Foo</i>
annevk commented 1 year ago

This should be closed as HTML 5.2 is obsolete.