-
Notifications
You must be signed in to change notification settings - Fork 74
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
Should "Get Trusted Type compliant string" check isHTML
/isScript
/isScriptURL
?
#534
Comments
isHTML
/isScript/
isScriptURL/`?isHTML
/isScript
/isScriptURL/
?
isHTML
/isScript
/isScriptURL/
?isHTML
/isScript
/isScriptURL
?
#559 should clarify the language, I think. The cc @petervanderbeken @smaug---- if there's a better way to write this up. |
Not sure, see #559 (comment).
Correct.
|
https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-compliant-string-algorithm step 1 currently specifies
"If input has type expectedType". What does that mean? It seems
isHTML
(https://w3c.github.io/trusted-types/dist/spec/#dom-trustedtypepolicyfactory-ishtml) /isScript
/isScriptURL
should be invoked.The callers of "Get Trusted Type compliant string", e.g.
someElement.insertAdjacentHTML
(https://html.spec.whatwg.org/#dom-parsing-and-serialization:dom-element-insertadjacenthtml) don't check that either so it should be checked somewhere.The text was updated successfully, but these errors were encountered: