- From: Krzysztof Kotowicz <notifications@github.com>
- Date: Mon, 18 Nov 2019 05:50:03 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 18 November 2019 13:50:05 UTC
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