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

rniwa left a comment (whatwg/dom#533)

> It seems that instead what most use cases need is to observe (a) `ownerDocument` changes and (b) `parentNode` changes.
> 
> Then we can get all the existing custom element lifecycle hooks:
> 
> * `connectedCallback()` → `ownerDocument` goes from `null` to a non-null value
> * `disconnectedCallback()` → `ownerDocument` changes from a non-null value to `null`

`ownerDocument` is never `null` so this won't work.


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

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

Received on Friday, 12 December 2025 20:34:33 UTC