setInnerHTML and removeChild record the nodes being deleted.