- From: Noam Rosenthal <notifications@github.com>
- Date: Wed, 24 Jun 2026 08:45:38 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 24 June 2026 15:45:42 UTC
noamr 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 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. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1474#issuecomment-4791082644 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1474/c4791082644@github.com>
Received on Wednesday, 24 June 2026 15:45:42 UTC