- From: Robbie Speed <notifications@github.com>
- Date: Tue, 15 Apr 2025 09:36:38 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 15 April 2025 16:36:42 UTC
robbiespeed left a comment (whatwg/dom#1369) I like the general idea of adding more powerful low level DOM methods, although it doesn't really cover the same use cases as #736 even putting aside serialisation / DOM representation aspects. A few notes on the API: Since move operations error between non-connected and connected areas (Or was that changed?) a `insertRangeBefore` would also be necessary. Having the operations inclusive of start and end would allow simplifying. `fromParent` in `moveRangeBefore` would be redundant since it can be inferred from `startNode` or `endNode`, the parents of which would need to be checked anyway to ensure they match. `extractRange` wouldn't be necessary, since one could create a DocumentFragment, then place the nodes inside using `fragment.insertRangeBefore`. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1369#issuecomment-2806790368 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1369/2806790368@github.com>
Received on Tuesday, 15 April 2025 16:36:42 UTC