html5lib / html5lib-tests

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

Missing coverage for `<button><p></button>x` #143

Closed zcorpan closed 2 years ago

zcorpan commented 2 years ago

button is special in relation to p (in that </button> generates implied end tags), ... I don't see a test for <button><p></button>x, so that is missing coverage.

Originally posted by @zcorpan in https://github.com/html5lib/html5lib-tests/issues/142#issuecomment-1035690952

An end tag whose tag name is one of: "address", "article", "aside", "blockquote", "button", "center", "details", "dialog", "dir", "div", "dl", "fieldset", "figcaption", "figure", "footer", "header", "hgroup", "listing", "main", "menu", "nav", "ol", "pre", "section", "summary", "ul"

https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inbody