Support for HTML documents.  If "DOCTYPE" found, then load as HTML document instead of HTML fragment.