- Compliant mode is enabled by default for web pages on the Internet and disabled for web pages on the Intranet. [1]
- When in compliant mode, a GUI button is available to switch to non-compliant mode. [1,4]
-
Force a particular mode for a given web page by inserting the
meta
element at the start of thehead
section, "before all other elements except thetitle
element and othermeta
elements."[2] For compliant mode use<meta http-equiv="X-UA-Compatible" content="IE=8" />
and for non-compliant mode use<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
[1,2,3]
document.documentMode
will be present and set to 8
when compliant mode is used, otherwise this property doesn't exist. [1,2]References
[1] D. Esposito, "Internet Explorer 8 and Compatibility Views", Dr. Dobbs Digest, March 2009
[2] MSDN, "Defining Document Compatibility".aspx), Feb 2009
[3] diTii.com, D'Technology Weblog, "IE8: Standards mode and IE7 compatibility mode", Aug 27, 2008
[4] IEBlog, "Introducing Compatibility View", Aug 27, 2008