Skip to content

Streaming support #190

@zcorpan

Description

@zcorpan

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions