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

@lukewarlow commented on this pull request.



> + <li>
+  <p>Otherwise:
+
+  <ol>
+   <li><p>Let <var>element</var> be <var>attribute</var>'s <a for=Attr>element</a>.
+
+   <li><p>Let <var>verifiedValue</var> be the result of calling
+   <a>get trusted type compliant attribute value</a> with <var>attribute</var>'s
+   <a for=Attr>local name</a>, <var>attribute</var>'s <a for=Attr>namespace</a>,
+   <var>element</var>, and <var>value</var>. [[!TRUSTED-TYPES]]
+
+   <li><p>If <var>attribute</var>'s <a for=Attr>element</a> is null, then set <var>attribute</var>'s
+   <a for=Attr>value</a> to <var>verifiedValue</var>, and return.
+
+   <li><p>If <var>attribute</var>'s <a for=Attr>element</a> is not <var>element</var>, then
+   return.

cc @otherdaniel just as an fyi there is a minor change to make to the Attr.nodeValue case.

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

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

Received on Thursday, 30 October 2025 13:19:45 UTC