document.compatMode
document 가 Quirks mode 인지 Strict mode 인지 판별
* Syntax
mode = document.compatMode
mode
BackCompat(Quirks mode) - Standards-compliant mode off
CSS1Compat(Strict mode) - Standards-compliant mode on
* remark
With Microsoft Internet Explorer 6 and later, you switch on
standards-compliant mode by including the !DOCTYPE declaration at the
top of your document, specifying a valid Label in the declaration, and
in some cases, specifying the Definition and/or URL. The Label
specifies the unique name of the Document Type Definition (DTD), and
can be appended with the version number of the DTD. The Definition
specifies the definition of the DTD that is specified in the Label.
The URL specifies the location of the DTD.
When standards-compliant mode is switched on,
Internet Explorer renders the document in compliance with the
Cascading Style Sheets (CSS), Level 1 (CSS1) standard.
When standards-compliant mode is not switched on, rendering behavior is
consistent with previous versions of Internet Explorer.
원본 위치
* Mozilla
http://developer.mozilla.org/en/docs/DOM:document.compatMode
Mozilla Quirks Mode
http://developer.mozilla.org/en/docs/Mozilla%27s_Quirks_Mode
Mozilla Quirks Mode VS Standard mode
http://developer.mozilla.org/en/docs/Mozilla_Quirks_Mode_Behavior
document 가 Quirks mode 인지 Strict mode 인지 판별
* Syntax
mode = document.compatMode
mode
BackCompat(Quirks mode) - Standards-compliant mode off
CSS1Compat(Strict mode) - Standards-compliant mode on
* remark
With Microsoft Internet Explorer 6 and later, you switch on
standards-compliant mode by including the !DOCTYPE declaration at the
top of your document, specifying a valid Label in the declaration, and
in some cases, specifying the Definition and/or URL. The Label
specifies the unique name of the Document Type Definition (DTD), and
can be appended with the version number of the DTD. The Definition
specifies the definition of the DTD that is specified in the Label.
The URL specifies the location of the DTD.
When standards-compliant mode is switched on,
Internet Explorer renders the document in compliance with the
Cascading Style Sheets (CSS), Level 1 (CSS1) standard.
When standards-compliant mode is not switched on, rendering behavior is
consistent with previous versions of Internet Explorer.
원본 위치
* Mozilla
http://developer.mozilla.org/en/docs/DOM:document.compatMode
Mozilla Quirks Mode
http://developer.mozilla.org/en/docs/Mozilla%27s_Quirks_Mode
Mozilla Quirks Mode VS Standard mode
http://developer.mozilla.org/en/docs/Mozilla_Quirks_Mode_Behavior
최근 덧글