- From: Dominic Farolino <notifications@github.com>
- Date: Thu, 12 Dec 2024 04:17:34 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 12 December 2024 12:17:38 UTC
@domfarolino commented on this pull request. > @@ -2652,6 +2652,63 @@ 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 any of the following conditions are true</p> + + <ul> + <li><p><var>parent</var> is <a>connected</a> and <var>node</var> is not <a>connected</a>; or</p></li> + + <li><p><var>parent</var> is not <a>connected</a> and <var>node</var> is <a>connected</a>,</p></li> + </ul> Yeah, I personally don’t think I see the value in enforcing such a requirement. Do you feel strongly about this? I think folks should be able to create detached DocumentFragments and move things around from them to possibly other detached subtrees, and mostly I don’t see the value of enforcing a common ancestor between old and new parent. What do you think @annevk ? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1307#discussion_r1881958113 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1307/review/2499271457@github.com>
Received on Thursday, 12 December 2024 12:17:38 UTC