- From: Valery Zinchenko <notifications@github.com>
- Date: Mon, 31 Mar 2025 23:03:00 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 1 April 2025 06:03:04 UTC
FrameMuse left a comment (whatwg/dom#736) > a range could select a start comment (setStartBefore) and and end content (setEndAfter) and validate on range.createGorupNodes() which returns a new GroupNodes via extractContents(), comments (boundaries) nodes removed and bound to the rest of the fragment, and from that time on any DOM operation that recieves or uses that group as reference would move such range around, prepend, append, insertBefore, remove and whatnot. I feel like the `range.groupNodes()` would be such a strong API. --- And I think the name should be like `groupNodes` instead of `createSMTH` since `create` implies multiple usage, but `group` or `toGroup` implies conversion, which is exactly what happens and it basically repeats `group` method from Figma Plugin API, which does essentially what you described. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/736#issuecomment-2768184719 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/736/2768184719@github.com>
Received on Tuesday, 1 April 2025 06:03:04 UTC