Re: [whatwg/dom] async disconnectedCallback? (#705)

This isn't possible, because disconnecting something from the DOM is a sync operation, and we can't change that. Tons of code in the world, both in JS and in browser C++, assumes that once you call el.remove(), on the very next line (with no awaiting) the element is disconnected.

Closing since this is not something we can change in the spec, but happy to continue explaining in the closed thread if necessary.

-- 
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/705#issuecomment-429630918

Received on Sunday, 14 October 2018 14:28:48 UTC