It would be useful to have a way of observing when a node gets connected or disconnected from a document similar to the way connectedCallback and disconnectedCallback work for custom elements but unlike those at the end of the microtask like all other mutation records.
It would be useful to have a way of observing when a node gets connected or disconnected from a document similar to the way
connectedCallbackanddisconnectedCallbackwork for custom elements but unlike those at the end of the microtask like all other mutation records.