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

rniwa left a comment (whatwg/dom#736)

Making this not a `Node` would make this proposal very similar to DOM parts. If we wanted to support this node-like object in `appendChild`, etc... though, not inheriting from `Node` might make it challenging for browser engines to implement this without incurring some runtime cost (due to each argument having a check with this new type of object). Making it inherit from `DocumentFragment` cleverly avoids any runtime cost being introduced.

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

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

Received on Wednesday, 16 April 2025 17:42:20 UTC