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

Make default policy available to tools #185

Closed
mikesamuel opened this issue Jun 27, 2019 · 1 comment
Closed

Make default policy available to tools #185

mikesamuel opened this issue Jun 27, 2019 · 1 comment
Assignees
Milestone

Comments

@mikesamuel
Copy link
Collaborator

Tools like a template language might want to apply a policy to string inputs, akin to applying the default policy, for example to vet strings that reach <a href={{x}}>. They might benefit from being able to default to the document's default policy.

Maybe expose an [Unforgeable] property TrustedTypes.defaultPolicy with type null | TrustedTypesPolicy.

@mikesamuel mikesamuel added this to the v1 milestone Jul 13, 2019
@koto
Copy link
Member

koto commented Jul 17, 2019

That sounds useful, can you add it to the spec?

@mikesamuel mikesamuel self-assigned this Jul 17, 2019
@koto koto assigned koto and unassigned mikesamuel Aug 8, 2019
@koto koto closed this as completed in d4167ee Aug 8, 2019
koto added a commit to koto/trusted-types that referenced this issue Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants