Since you're never resetting this, it means that you can never get more than one setChildNodes in the change log. You're loading a single level with DOMHost.getChildNodes(...) because depth==0. Will this fail when you have more than two levels in the tree?