Re: [whatwg/dom] Integrate Trusted Types enforcement into attribute handling (PR #1268)

@annevk commented on this pull request.



> @@ -7013,6 +7020,8 @@ string <var>namespace</var> (default null):</p>
 
  <li><p>Otherwise, <a lt="append an attribute">append</a> <var>attr</var> to <var>element</var>.
 
+ <li><p>Set <var>attr</var>'s <a for=Attr>value</a> to <var>verifiedValue</var>.

I think we either have to throw or do nothing at all, right? The latter is very weird as even no-op mutations result in a mutation record being queued. And queuing a mutation record for trusted type attributes without validation having occurred seems bad, so I think we have to throw.

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

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

Received on Tuesday, 15 July 2025 11:35:11 UTC