You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TrustedTypes definitions have landed, but please consider the following changes to the API to make it more usable:
Make trustedTypes nullable, or provide a way to check if trustedTypes are available. TrustedTypes is a Chrome-only feature, and is undefined when not available. This is what I needed to do the last time I used TT:
Also, it's needed for certain types to have setters that accept their TrustedType value, like: script.src and element.innerHtml (and have: script.trustedSrc and element.trustedInnerHtml...), for example:
Also also, the second parameter to createScriptURL (and probably all other create functions) must be optional. I needed to override the method last time I used this:
TrustedTypes definitions have landed, but please consider the following changes to the API to make it more usable:
trustedTypes
nullable, or provide a way to check iftrustedTypes
are available. TrustedTypes is a Chrome-only feature, and is undefined when not available. This is what I needed to do the last time I used TT:TrustedType
value, like:script.src
andelement.innerHtml
(and have:script.trustedSrc
andelement.trustedInnerHtml
...), for example:createScriptURL
(and probably all other create functions) must be optional. I needed to override the method last time I used this:/cc @kevmoo
TL;DR: Take this, fill in the gaps and make it part of
package:web
ppppplease :PThe text was updated successfully, but these errors were encountered: