- From: L. David Baron <notifications@github.com>
- Date: Thu, 31 Oct 2024 08:53:05 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/issues/736/2450228044@github.com>
Reading through this issue, I think (although I might be misreading some of the comments) that different people involved have been proposing or thinking of two different things here: Proposal A: * a `DocumentFragment`-like object that can get appended/inserted into the DOM like `DocumentFragment`s are today (where all the children get inserted into their new parent), but doesn't lose track of those children when that happens, so it still continues to track the range of children that were in it. * This object never itself becomes part of the document's DOM tree. * I think an implication of this is that this `DocumentFragment` isn't the `parentNode` of its children, since when those children get inserted into the DOM their `parentNode` needs to be what they were inserted into. This is this option's major difference from today's `DocumentFragment`, and (I think) makes it similar to the `NodeTemplatePart` and DOM Parts proposals. Proposal B: * a `DocumentFragment`-like object that gets appended/inserted into the DOM like regular nodes and can be given a `parentNode`. * This object differs from today's `DocumentFragment` in that it needs to support features that make it "transparent" to some DOM operations, but still be part of the DOM for the purpose of other DOM operations. * One hard part of doing this is figuring out, for everything that operates on the DOM today, what this needs to be "transparent" to and what needs to see it. * There are also the concerns about serialization mentioned in https://github.com/whatwg/dom/issues/736#issuecomment-470676085 For some of the comments above it's clear to me which of A or B are being described -- but there are a bunch of comments where it's not clear to me, so it's hard for me to tell which of these has more interest (and also for which uses the less-desired one would still be acceptable). -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/736#issuecomment-2450228044 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/736/2450228044@github.com>
Received on Thursday, 31 October 2024 15:53:09 UTC