Re: [whatwg/dom] Make it possible to observe connected-ness of a node (#533)

dead-claudia left a comment (whatwg/dom#533)

> > Consider that connection is when iframes and images start their initial load.
> 
> I don't think the connection events should fire when HTML is parsed, only when connections done to existing DOM in memory.

@FrameMuse I'm talking about script-created elements here. [These are called on dynamic insertion as well as during initial HTML tree building.](https://dom.spec.whatwg.org/#ref-for-concept-node-post-connection-ext%E2%91%A5) And [here's the part for iframes I was referring to](https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-iframe-element:html-element-post-connection-steps).

I'm also expressly just asking for a way to observe that in-practice browser bit flag, so while in theory it's indirect, it in practice is very much direct observation of a node's mutable state.



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

Message ID: <whatwg/dom/issues/533/2842985101@github.com>

Received on Wednesday, 30 April 2025 18:55:10 UTC