Document Modes in IE (Internet Explorer) | UA - User Agents
Standards Based Development
ie8
Four rules about how ie handles doctype, X-UA-Compatible meta element and header, Developer Tools, and Compatibility View Settings that follow the diagram below, from top to bottom:
- Developer Tools settings override all Document Modes for documents displayed in a tab.
- X-UA-Compatible meta element and then header override Compatibility View Settings and the doctype unless X-UA-Compatible value is EmulateIE7 or EmulateIE8.
- User's Compatibility View Settings override the Microsoft Compatiblity View List.
- If none of the above apply, doctype determines if the document renders in ie8 Standards, ie8 Almost Standards or Quirks Mode.
ie9
iframe Impact Determination Flow Chart Diagrammeta X-UA-Compatible / and ie9
| X-UA-Compatible value | Document modes |
|---|---|
IE=5 | Quirks mode |
IE=7 | IE7 mode |
IE=8 | IE8 mode |
IE=9 | IE9 mode |
IE=10 | IE10 mode |
IE=edge | The highest supported document mode of the browser |
IE=EmulateIE7 | IE7 mode (if a valid Quirks mode (otherwise) |
IE=EmulateIE8 | IE8 mode (if a valid Quirks mode (otherwise) |
IE=EmulateIE9 | IE9 mode (if a valid Quirks mode (otherwise) |
IE=EmulateIE10 | IE10 mode (if a valid Quirks mode (otherwise) |
ie10
References and Resources
- Defining document compatibility
- How to Enable Standards Support
!DOCTYPEcompatModePropertydocumentModeProperty- How Internet Explorer 8 Document Mode Affects JavaScript
- Internet Explorer 8 Document and Browser Modes
- How ie8 Determines Document Mode
- Testing Sites with Browser Mode vs. DocMode
- Document Compatibility Modes in Internet Explorer 9<
- Understanding the Need for Document Compatibility Modes
- Specifying Legacy Document Modes
- Defining Document Compatibility
- Fix Site Display Problems with Compatibility View
- How to Change Browser Modes in ie9 Permanently - Superuser.com