html5lib / html5lib-tests

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

Test parsing of the <search> element #142

Closed zcorpan closed 2 years ago

zcorpan commented 2 years ago

See https://github.com/whatwg/html/pull/7320

zcorpan commented 2 years ago

button is special in relation to p (in that </button> generates implied end tags), but not in relation to search. So no need to add new tests for button here I think.

However I don't see a test for <button><p></button>x, so that is missing coverage. I can file an issue.

zcorpan commented 2 years ago

Actually, button is relevant here. I glossed over the "button scope" thing, until I saw your comment here!

The relevant test would be:

<!doctype html><p><button><search>

(which should not close the p)

zcorpan commented 2 years ago

Fixed. I also tested the other start tags, for completeness.