Re: [whatwg/dom] Call "Update attributes from data" whenever PI data is directly set (PR #1511)

@annevk approved this pull request.



> @@ -5167,8 +5167,13 @@ and an optional <a for=/>document</a> <dfn export for="clone a node"><var>docume
    <dd><p>Set <var>copy</var>'s <a for=CharacterData>data</a> to that of <var>node</var>.
 
    <dt>{{ProcessingInstruction}}
-   <dd><p>Set <var>copy</var>'s <a for=ProcessingInstruction>target</a> and
-   <a for=CharacterData>data</a> to those of <var>node</var>.
+   <dd>
+    <ol>
+     <li><p>Set <var>copy</var>'s <a for=ProcessingInstruction>target</a> and
+     <a for=CharacterData>data</a> to those of <var>node</var>.
+
+     <li><p><a>Update attributes from data</a> given <var>copy</var>.

This is okay as long as we fix https://github.com/whatwg/dom/issues/1523. If we end up not fixing that we should copy the data structure here instead.

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

Message ID: <whatwg/dom/pull/1511/review/5842514580@github.com>

Received on Tuesday, 10 November 2026 13:21:32 UTC