Bug 1012530 - Part 1. Keep information about placeholder nodes. r=florian
Bug 1012530 - Part 2. Reorder child nodes when swapping document state. r=florian