If a valid doctype is parsed, insert it as document.childNodes[1]