The HTML5 doctype is not triggering standards mode in IE8

前端 未结 3 1800
青春惊慌失措
青春惊慌失措 2020-12-09 22:20

i work for a company where all our sites currently use the XHTML 1.0 transitional doctype (yes i know it is very old school). I want to change them all to use the HTML5 doct

3条回答
  •  情书的邮戳
    2020-12-09 23:02

    Both the XHTML 1.0 Transitional doctype (when used by the spec, with a URL) and trigger “Standards Mode” in IE. If this does not happen, there is a multitude of reasons that probably have nothing to do with the doctype change (and can only be analyzed if additional information, such as a URL, is available); see IE 8 and IE 9 complications in Activating Browser Modes with Doctype.

    Changing to is pointless and a potential problem, unless you not actually changing the markup. In validation, which is the other reason for using doctype, it causes a completely different analysis and quite often error messages about constructs that are valid in XHTML 1.0.

提交回复
热议问题