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

@lukewarlow commented on this pull request.



> @@ -6519,6 +6529,11 @@ string <var>namespace</var> (default null):</p>
 
  <li><p>If <var>oldAttr</var> is <var>attr</var>, return <var>attr</var>.
 
+ <li><p>Let <var>verifiedValue</var> be the result of calling <a>verify attribute value</a>
+ <var>attr</var>'s <a for=Attr>value</a> for <var>attr</var>, with <var>element</var>.
+
+ <li><p>Set <var>attr</var>'s <a for=Attr>value</a> to <var>verifiedValue</var>.
+

This is fixed and has a test, per Daniels' suggestion and my recent spec change this should be even cleaner. It will require a test change to verify the order of exceptions (the TT TypeError / default policy exception is now the first exception thrown)

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

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

Received on Thursday, 20 February 2025 16:03:06 UTC