2
황인균
So What? 엔터프라이즈모드 vs 도큐먼트 모드 사용 전략
<emie> : internet explorer 8, 7과 가장 좋은 호환성을 제공한다.
<docMode> : 환경에서 실행되는 IE의 버전에 상관없이 최신 버전의 엔진을 사용할 수 있도록 하는데 도움이 된다.
엔터프라이즈 구성 파일 (XML)의 스키마를 구성해서 “엔터프라이즈 모드<emie>”와 “도큐먼트모드 <docMode>”를 함께 구성할 수 있다.
<rules version="1">
<emie> … </emie>
<docMode> … </docMode>
</rules>
자세한 스키마 : 부록 참고
웹 사이트별 적절한 설정을 찾기 위한 테스트 전략을 아래 처럼 권한다.
• 만약 기존 엔터프라이즈 환경에서 Internet Explorer 8과 7을 주로 사용했었다면, 엔터프라이즈 모드를 사용해서 테스트를 시작하라.
• 만약 기존 엔터프라이즈 환경에서 Internet Explorer 9, 10을 주로 사용했었다면, 다양한 docMode 설정을 이용해서 테스트를 시작하라.
그러나 다양한 버전의 IE를 사용하는 환경일 수 있기 때문에,
엔터프라이즈 모드와 다큐먼트 모드를 모두 사용해야 IE11으로 효과적으로 전환될 수 있을 것이다.
참조 : https://msdn.microsoft.com/en-us/library/dn872481.aspx
Fix web compatibility issues using document modes and the Enterprise Mode site list
그러나 작업을 했던 업체의 경우,
1) Internet Explorer 8과 7 시절에서 Internet Explorer 9으로 업그레이드할때, 프로그램을 수정한 것이 아니라 “호환성 기능”을 이용함.
따라서 주 버전은 Internet Explorer 8과 7로 보는 것이 맞음. 엔터프라이즈 모드 사용 고려
2) 또한 이후 개발에서 Internet Explorer 9을 대상으로 개발했을 가능성 있음 도큐먼트 모드 사용 고려
3) 따라서 엔터프라이즈 모드와 도큐먼트 모드를 모두 고려해야 할 것으로 보임.
그렇다면, 두 모드에 대한 설정이 함께 있을때 어떻게 될까?
Document mode selection flowchart라는 흐름도가 있는데, IE11에서는 이 순서를 거쳐서 문서의 최종 도큐먼트 모드가 결정된다.
3.
3
황인균
https://technet.microsoft.com/en-us/library/dn321432.aspx
Document mode selectionflowchart
Document mode selection flowchart 그림을 보면
최종 문서 모드를 결정하는 데는 아래 요소가 영향을 준다.
각 요소는 “웹 서버, 웹 페이지, 사용자 PC”등에 설정될 수 있다.
최종 문서 모드 결정의 영향 요소
F12 tools
EMIE 사이트 목록의 <emie>설정
EMIE 사이트 목록의 <docMode>설정
X-UA-Compatible 메타 값 ( 아래 참조)
X-UA-Compatible 응답 헤더값 (아래 참조)
그룹정책 for IE5, IE7
Local Compatibility View List( 호환성 보기 설정 )
HTML 페이지의 <docType>설정
X-UA-Compatible 메타 값
: HTML페이지의 <meta>요소의 http-equivalent 값으로 사용
: 예)<meta http-equiv="X-UA-Compatible" content="IE=Edge">
X-UA-Compatible 응답 헤더값
HTTP 응답의 헤더에 "X-UA-Compatible"라는 이름으로 제공될 수 있
다. 웹 서버의 config에 지정
X-UA-Compatibility Meta Tag and HTTP Response Header
https://msdn.microsoft.com/en-us/library/ff955275(v=vs.85).aspx
4.
4
황인균
부록
■ 엔터프라이즈 모드스키마
IE Enterprise Mode XML Site List Format
http://www.itsupportforum.net/topic/ie-enterprise-mode-xml-site-list-format/
Enterprise Mode schema guidance
https://technet.microsoft.com/en-us/library/dn894101.aspx
■ X-UA-Compatible 값과 도큐먼트 모드 값
참조 : https://msdn.microsoft.com/en-us/library/ff955275(v=vs.85).aspx
2.1.3.5 X-UA-Compatibility Meta Tag and HTTP Response Header
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=11 IE11 mode
IE=edge The highest supported document mode of the browser
IE=EmulateIE7 IE7 mode (if a valid <!DOCTYPE> declaration is present)
Quirks Mode (otherwise)
IE=EmulateIE8 IE8 mode (if a valid <!DOCTYPE> declaration is present)
Quirks Mode (otherwise)
IE=EmulateIE9 IE9 mode (if a valid <!DOCTYPE> declaration is present)
Quirks Mode (otherwise)
IE=EmulateIE10 IE10 mode (if a valid <!DOCTYPE> declaration is present)
Quirks Mode (otherwise)
IE=EmulateIE11 IE11 mode (if a valid <!DOCTYPE> declaration is present)
Quirks Mode (otherwise)