Skip to content

Enable createParserOptions, passing a sanitizer to trusted types#606

Open
noamr wants to merge 3 commits intomainfrom
create-parser-options
Open

Enable createParserOptions, passing a sanitizer to trusted types#606
noamr wants to merge 3 commits intomainfrom
create-parser-options

Conversation

@noamr
Copy link

@noamr noamr commented Feb 17, 2026

createParserOptions receives a SetHTML{Unsafe}Options and turns them into a TrustedParserOptions using the given method from the policy config.

This is the trusted-types part of #594

Note that this should only be merged when wired into the HTML standard, once the sanitizer is itself upstreamed.

`createParserOptions` receives a `SetHTML{Unsafe}Options` and turns them into
a `TrustedParserOptions` using the given method from the policy config.

This is the `trusted-types` part of #594
(Need to wire it to HTML as well)
@noamr noamr requested a review from lukewarlow February 17, 2026 11:13
@noamr noamr mentioned this pull request Feb 17, 2026
@lukewarlow
Copy link
Member

LGTM

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