- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 13 Nov 2024 06:42:58 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 13 November 2024 14:43:01 UTC
@annevk commented on this pull request. > @@ -2652,6 +2652,50 @@ of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run the <!-- Technically this is post-insert. --> </ol> +<p>To <dfn export for=Node id=concept-node-ensure-pre-move-validity>ensure pre-move validity</dfn> +of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run these steps: + +<ol> + <li><p>If either <var>parent</var> or <var>node</var> are not <a>connected</a>, then + <a>throw</a> a "{{HierarchyRequestError!!exception}}" {{DOMException}}.</p></li> I don't see how connected <> disconnected would work. It would need a completely different code path, no? I can see connected <> connected and disconnected <> disconnected. Someone (either Noam or Dominic) argued against disconnected <> disconnected earlier, but it seems reasonable to allow as well. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1307#discussion_r1840455112 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1307/review/2433457152@github.com>
Received on Wednesday, 13 November 2024 14:43:01 UTC