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

Why are policyOptions an optional argument of createPolicy? #459

Closed
mbrodesser-Igalia opened this issue Feb 28, 2024 · 2 comments
Closed

Comments

@mbrodesser-Igalia
Copy link
Collaborator

https://w3c.github.io/trusted-types/dist/spec/#trustedtypepolicyfactory

A policy without options is of no use, or?

@koto
Copy link
Member

koto commented Feb 28, 2024

I guess it can be used to reject every value? @otherdaniel, can we check if a 2nd argument is actually always passed to createPolicy? That seems like worthy of fixing for the API to be more ergonomic.

@mbrodesser-Igalia
Copy link
Collaborator Author

Optional is required for technical reasons:

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