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

Stripping of bad input #301

Open
DemiMarie opened this issue Aug 16, 2017 · 1 comment
Open

Stripping of bad input #301

DemiMarie opened this issue Aug 16, 2017 · 1 comment

Comments

@DemiMarie
Copy link

This is a feature request for the ability to “correct” bad input, by stripping away parts that are not conforming to the spec. This is mostly useful for sanitizers, especially for pages that want to ensure that their contents are valid HTML.

This is a feature request for html5ever because of the intimate knowledge of the spec required.

@Ygg01
Copy link
Contributor

Ygg01 commented Oct 26, 2017

Interesting proposal, initially I thought that just serializing the parsed output won't work.

The issue, is valid HTML is different than parsed HTML, e.g. you cant have two element with different id, etc.

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

No branches or pull requests

2 participants