the document type really only applies if you enable full page editing. with full page editing turned on, HTML editor adds the code for the doctype, head and body section of the page.
if you don't enable full page editing,the doctype setting is not important.