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

"Get Trusted Type compliant string" is called with "script" instead of "'script'" #542

Closed
mbrodesser-Igalia opened this issue Aug 22, 2024 · 1 comment · Fixed by #561
Closed
Labels

Comments

@mbrodesser-Igalia
Copy link
Collaborator

E.g. from https://html.spec.whatwg.org/#the-insertadjacenthtml()-method.

"Get Trusted Type compliant string" [1] invokes "Should sink type mismatch violation be blocked by Content Security Policy?" [2].
The latter checks for a match of the sinkGroup in step 2.3, which refers to [3] which contains "'sink'".

[1] https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-compliant-string-algorithm
[2] https://w3c.github.io/trusted-types/dist/spec/#abstract-opdef-should-sink-type-mismatch-violation-be-blocked-by-content-security-policy
[3] https://w3c.github.io/trusted-types/dist/spec/#trusted-types-sink-group

@petervanderbeken
Copy link

"script" instead of "'script'"

@mbrodesser-Igalia mbrodesser-Igalia changed the title "Get Trusted Type compliant string" is called with "sink" instead of "'sink'" "Get Trusted Type compliant string" is called with "script" instead of "'script'" Aug 26, 2024
koto added a commit to koto/trusted-types that referenced this issue Nov 5, 2024
koto added a commit to koto/trusted-types that referenced this issue Nov 6, 2024
@koto koto closed this as completed in #561 Nov 6, 2024
@koto koto closed this as completed in 4317ed0 Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants