Tests that removing child from the document is handled properly in the elements panel.