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

@lukewarlow 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>.

Should this be a set or a list? Based on what infra says I *think* maybe a set? But then the nodes parameter comes from a JS union so is that maybe a list?

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

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

Received on Tuesday, 16 April 2024 11:01:16 UTC