- From: Robbie Speed <notifications@github.com>
- Date: Wed, 16 Apr 2025 14:56:10 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 16 April 2025 21:56:17 UTC
robbiespeed left a comment (whatwg/dom#736) @WebReflection I tried your prototype, and one thing that I found limiting was the requirement of comment nodes as boundary markers. In my own lib I only sometimes resort to explicit marker nodes if the group of nodes is fully dynamic, I use text nodes, but needing to switch to comment nodes there isn't so bad. However if the group has static nodes (text or element) at the start and end I use those as the markers. Also I think I mentioned it in a earlier comment, but for serialisation comment nodes are not as ideal if you can get away with using elements (when they are present at the boundaries) at least in the initial setup of a group can be done without walking the tree. I guess part of the goal is to have special comment nodes for automatic serialisation into groups, but maybe that could be split off as a later addition. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/736#issuecomment-2810902007 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/736/2810902007@github.com>
Received on Wednesday, 16 April 2025 21:56:17 UTC