documentMode property
[This documentation is preliminary and is subject to change.]
Retrieves the document compatibility mode of the document.
![]() |
Syntax
HRESULT value = object.get_documentMode(VARIANT* p);
Property values
Type: VARIANT
VARIANT of type VT_R4 that receives one of the following values.
5
-
Internet Explorer 5 mode (also known as "quirks mode").
7
-
Internet Explorer 7 Standards mode.
8
-
Internet Explorer 8 Standards mode.
9
-
Internet Explorer 9 Standards mode.
10
-
Internet Explorer 10 Standards mode.
Remarks
When the current document has not yet been determined, IHTMLDocument6::documentMode returns a value of zero (0). This usually happens when a document is loading. When a return value of zero is received, try to determine the document compatibility mode at a later time.
This property is available in all compatibility modes.
The document compatibility mode of a document determines how Internet Explorer 8 interprets and renders the document. Document authors generally use meta elements to specify X-UA-Compatible IHTMLMetaElement::httpEquiv headers that specify the document compatibility mode. For more information, see Defining Document Compatibility.
In versions of Windows Internet Explorer previous to Internet Explorer 8, IHTMLDocument5::compatMode was solely determined by IHTMLDocument5::doctype.
See also
- Reference
- IHTMLDocument6::compatible
- Conceptual
- Defining Document Compatibility
Build date: 6/12/2012
