Re: [whatwg/dom] Trusted Types integration (#789)

To clarify: are you worried about the call to `setAttribute` possibly throwing, or about the behavior that happens later with the element? There are side effects when you set a `src` attribute depending on the actual element (e.g. image gets loaded, or script gets executed, or nothing happens), so in a larger scope attribute assignment is always contextual. 

We are proposing the way to query the DOM to see what type is [expected for the attribute](https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicyfactory-getattributetype), to reduce the surprise effect. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/789#issuecomment-555022865

Received on Monday, 18 November 2019 13:50:05 UTC