Handle cases where doctype is preceded by html comment