If a Document has a doctype, insert it as document.childNodes[1]