- From: Shannon Booth <notifications@github.com>
- Date: Wed, 24 Jun 2026 09:01:31 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 24 June 2026 16:01:36 UTC
shannonbooth left a comment (whatwg/dom#1474) > > Indeed it feels a bit yuck, though it doesn't seem possible to change in a nice way as long as connected is defined in terms of document and fragment parsing requires a document. If we can wire up fragment parsing without a document that indeed seems much nicer, I can try and investigate that approach (unless this is already being worked on based on what is mentioned above?) > > An element inserted to a `DocumentFragment` is never `connected` so I think it would solve this. > > Note that multiple in-flight and upcoming changes like [whatwg/html#11818](https://github.com/whatwg/html/pull/11818) are doing this work through redirecting the insertion target (see https://html.spec.whatwg.org/multipage/parsing.html#appropriate-place-for-inserting-a-node). This would probably be the place to fix it as well. I would prefer if we do this after these in-flight changes are complete though. Sounds good, I'll hold off! -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1474#issuecomment-4791248050 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1474/c4791248050@github.com>
Received on Wednesday, 24 June 2026 16:01:36 UTC