Re: [whatwg/dom] Trusted types attributes (PR #1268)

I think I've addressed all the comments from #1247.

I do want to point out Chrome and WebKit don't (or at least not in a way obvious to me) 100% follow the flow of the spec and as a result this may result in differences specifically in weird cases with attribute mutation.

So that bit especially it would be good to get feedback on.

It's also worth being aware that like Chromium's implementation this spec means that certain ways to update a nodes value don't work with a trusted type object as a user might expect. (e.g. `iframe.getAttributeNode('srcdoc').value = trustedHTMLObj;` will throw unless allowed by a default policy). I think in pratice this will be fine, and in some cases is the only real option we have without nodes keeping track of whether they're trusted or not (which would add lots of complexity)

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

Message ID: <whatwg/dom/pull/1268/c2069397304@github.com>

Received on Monday, 22 April 2024 13:18:54 UTC