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

Streaming support #190

Closed
zcorpan opened this issue Mar 10, 2023 · 1 comment
Closed

Streaming support #190

zcorpan opened this issue Mar 10, 2023 · 1 comment

Comments

@zcorpan
Copy link

zcorpan commented Mar 10, 2023

See whatwg/html#8759 (comment)

The HTML parser spec is streaming (although the tree is sometimes mutated in interesting ways). In whatwg/html#2142 there's a proposal to add a streaming API for the parser.

If the sanitizer API should be usable with the streaming HTML parser API, then sanitization needs to also be streamable.

It seems possible to perform sanitization in the tree builder stage of the HTML parser: https://html.spec.whatwg.org/multipage/parsing.html#creating-and-inserting-nodes

@annevk
Copy link
Collaborator

annevk commented Oct 18, 2023

Since parsing and sanitizing are tightly coupled in the current APIs this is no longer a concern.

@annevk annevk closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2023
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