Re: [whatwg/dom] Treat fragment parser documents as not connected (PR #1474)

noamr left a comment (whatwg/dom#1474)

> I don't like changing the meaning of connected for this. It feels a bit like a layering violation. Also, as discovered in [whatwg/html#11669 (comment)](https://github.com/whatwg/html/issues/11669#issuecomment-3589383629) I don't think this will actually do the trick long term as not all browsers create an intermediate document.
> 
> I wonder if @noamr and @foolip have ideas on how to address this properly.

I think a more consistent approach would be to insert elements directly to the `DocumentFragment` rather than inserting them to the inert document and then moving them to the fragment in bulk.
Then they wouldn't be "connected" in the first place and we don't need a DOM change. 

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

Message ID: <whatwg/dom/pull/1474/c4791016035@github.com>

Received on Wednesday, 24 June 2026 15:39:21 UTC