-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
Milestone
Description
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