[whatwg/dom] "Remove a node from a parent" reaction callback stuff needs to be conditional on the node being connected before the operation (#773)

https://dom.spec.whatwg.org/#concept-node-remove step 14 says:

> If node is custom, then enqueue a custom element callback reaction with node, callback name "disconnectedCallback", and an empty argument list. 

This is wrong, it should be conditional on the parent node being connected before the removal (or something of that sort spec-wise), otherwise you get too many callbacks when removing a node from a disconnected parent.

See https://github.com/servo/servo/issues/23716.

-- 
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/773

Received on Friday, 5 July 2019 11:23:29 UTC