Re: [whatwg/dom] Proposal: a DocumentFragment whose nodes do not get removed once inserted (#736)

DeepDoge left a comment (whatwg/dom#736)

> from a fragment that is literally non-existent on the DOM, everything works wonderfully together

That's probably the difference, I'm more interested it's being in the DOM rather than being something abstract. More verbose. When I see it on the DOM I wanted to say, OK this is a wrapper `Node`, and I can remove or add stuff in it.

Like when you are listening the DOM with `MutationObserver` and `DocumentFragment` flashes there for a second. I was like:
"If its acting like that, replacing itself with it's children, why not just keep it there."

> to me that's better than needing to check two levels up to know if the child is live or not

Doesn't `Node.prototype.isConnected` do that?

Anyway, either way, as long as we have something useful, I don't really care what it's or how it works.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/736#issuecomment-2827701001
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/736/2827701001@github.com>

Received on Thursday, 24 April 2025 13:49:44 UTC