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:
Activity