[whatwg/dom] MutationObserver observed element removal (#779)

Currently, with MutationObservers,  to catch a node being removed from the DOM you have to observe the entire DOM and check every node removal record for the node in question.

( If you observe a node and remove that node nothing fires. The same applies to it's parent and so on all the way up to the document  eg . https://stackoverflow.com/q/44935865/4779501 )

This is obviously extremely inefficient - possibly to the point of being unworkable in some cases.

An event on the MO, to fire when the element being observed is removed, would be one way to address this.

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

Received on Monday, 26 August 2019 11:42:56 UTC