- From: Andrea Giammarchi <notifications@github.com>
- Date: Tue, 25 Mar 2025 01:34:20 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 25 March 2025 08:34:24 UTC
WebReflection left a comment (whatwg/dom#736) > introducing a new element like <group> which can appear anywhere in HTML is a non-starter. my concern too ... and I start wondering if what we're all after is actually a formal way to standardize comments boundaries or simply extend, or introduce, a new kind of comment that automatically knows it's starting and ending point and is able to move around all nodes in between in one go via insertBefore or moveBefore, effectively representing a persistent fragment proposing minimal parsing or behavior changes and just a comment extend. In one of my *hydration* exploration/solutions that special node was `<!--[3]--><br><br><br><!--[/]-->` where the `[3]` represents the list of direct next siblings to handle on move/remove operations and it would change if a specific node in it is appended or removed, reflecting the new "*range*" ... this doesn't seem too complicated and, if standardized, it would help tooling to never break that contract or drop those nodes. Is there any chance something like that could ever land? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/736#issuecomment-2750479382 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/736/2750479382@github.com>
Received on Tuesday, 25 March 2025 08:34:24 UTC