Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support HTML5 search element #2566

Merged
merged 2 commits into from
Jun 9, 2022

Conversation

flavorjones
Copy link
Member

What problem is this PR intended to solve?

Upstream the <search> element has been adopted (whatwg/html#7320) and the tests were added to html5lib-tests (html5lib/html5lib-tests#142).

The upstream tests have been failing on this for a while, so I'm attempting to add support in this PR.

Notable changes:

  • I've restored our ability to generate source files from the .gperf files
  • I've added a new search tag
  • I've modified the parser to include search in the set of tags that close p and that should have implicit end tags

Have you included adequate test coverage?

I've updated the test/html5libs-test ref to the latest that is still green.

Does this change affect the behavior of either the C or the Java implementations?

The HTML5 parser is only supported in the C extension.

@flavorjones flavorjones force-pushed the flavorjones-fix-upstream-html5lib-202206 branch from c2355bb to 1c74c8f Compare June 5, 2022 21:32
Copy link
Contributor

@stevecheckoway stevecheckoway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me.

@stevecheckoway
Copy link
Contributor

stevecheckoway commented Jun 9, 2022

The new search element doesn't yet appear on the web page, but from reading the changes, it looks like it only impacts the parser in the ways your commits handles.

@flavorjones
Copy link
Member Author

Thanks for the review! Merging.

@flavorjones flavorjones merged commit e7697c6 into main Jun 9, 2022
@flavorjones flavorjones deleted the flavorjones-fix-upstream-html5lib-202206 branch June 9, 2022 19:39
flavorjones added a commit that referenced this pull request Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants