This test covers some tricky ground where we call appendChild between document.open an document.write. This sequence of calls results in an unusual situation where the parser is in the Initial state but the document is not empty.