Jonas Sicking (2013-05-15T02:08:34.000Z)
github at esdiscuss.org (2013-07-12T02:27:21.335Z)
Actually, mutation observers have some special behavior that only lasts until the end-of-microtask queue is empty. If you start observing the mutations that happen in a particular Node subtree rooted in a node A, you will be told about all mutations that happen in the nodes that were descendants of A until all end-of-microtask notifications have fired. So even if a node is removed from A and then modified, the observer is notified about those mutations as long as they happen before all end-of-microtask observers have fired. At least I think that's how I think it works. You'd have to check the spec for more details. Possibly this is something that can be changed though.