- From: Andrea Giammarchi <notifications@github.com>
- Date: Wed, 16 Apr 2025 12:54:33 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 16 April 2025 19:54:37 UTC
WebReflection left a comment (whatwg/dom#736) Apologies it's been a long day and this is the last one from me but *GroupNode* would be also a great primitive that could help developing this proposal https://github.com/whatwg/dom/issues/1369 as most operations at that point would indeed be exactly bulk moves from other parents to the fragment, when removed, or bulk `insertBefore` / `moveBefore` from one parent to another, when the `group` is *inserted* elsewhere or *removed* and that could become a natural evolution of the implementation for *NodeGroup*: ```js const range = new Range; range.setStartAfter(group.boundaryStart); range.setEndBefore(group.boundaryEnd); range.insertBefore(group); group.boundaryStart.remove(); group.boundaryEnd.remove(); ``` no *while* loop needed ... but again, that's just an implementation detail I've used to demo the logic, if bulk moves/operations were possible already, I would've used those to simplify that *while* loop in *JS* and I see these two proposals complementary, instead of exclusive, as neither replaces the other use case. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/736#issuecomment-2810611192 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/736/2810611192@github.com>
Received on Wednesday, 16 April 2025 19:54:37 UTC