Re: [whatwg/dom] Integration with trusted types inside of node conversion (PR #1258)

@annevk commented on this pull request.



> +
+     <li><p>Set <var>value</var>'s <a for=CharacterData>data</a> to <var>text</var>.
+    </ol>
+
+    <li>
+     <p>If <var>value</var> is a {{TrustedScript}}, then:
+
+     <ol>
+      <li><p>Let <var>text</var> be <var>value</var>'s <a for=TrustedScript>\[[Data]]</a>
+      internal slot value.
+
+      <li><p>Let <var>newValue</var> be a new {{Text}} <a for=/>node</a> whose
+      <a for=CharacterData>data</a> is <var>text</var> and <a for=Node>node document</a> is
+      <var>document</var>.
+
+      <li><p>Replace <var>value</var> with <var>newValue</var>.

I don't think it matters here and using list syntax is nice.

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

Message ID: <whatwg/dom/pull/1258/review/2006353080@github.com>

Received on Wednesday, 17 April 2024 15:21:35 UTC