Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How IE8 Determines Document Mode

02 Mar 2010   #1
SGT Oddball

How IE8 Determines Document Mode

This post describes how IE8 determines what Document Mode such as Quirks or Standards Modes to use for rendering websites. This topic is important for site developers and consumers.

Itís related to the Compatibility View List that we recently updated. This list is down by over 1000 websites, from over 3100 to just over 2000, since IE8 released last March. As we work with site developers and standards bodies, weíre excited to see the sites that need to be on the Compatibility View (CV) List continue to go down.

Data-driven Design

Before we dig in to the design details, I want to share some of the data we use to design the compatibility experience.

When looking at the doctype and X-UA-Compatible meta tag and header on thousands of high traffic websites worldwide such as, and those on the initial CV List,

  • 26% specify Quirks such as,, and
  • 41% specify a Transitional doctype that puts them in Almost Standards Mode.
  • 14% have already added an X-UA-Compatible meta tag or HTTP response header to render in IE7 Standards Mode.
Hereís why this makes sense; many high traffic websites want to render in as many browsers as possible, which is why they write for Quirks. Many websites have pages written specifically for IE7 and many web authoring tools such as Aptana Studio and Expression Web specify the Transitional doctype by default:

Thinking in terms of web-scale, there are billions of pages written specifically for either Quirks, IE7, Almost Standards, or the latest Standards. IE needs to support all of these web platform variations to ensure that our broad, world-wide, user-base has the best experience.

With this data in hand, we designed IE8 with a few principles in mind:

  1. Render websites in the most standards compliant way by default. As stated in previous posts, weíre committed to interoperability, which means rendering websites in the most standards compliant way possible by default.

  2. Users expect the web to just work in IE. A small set of users will tinker to get websites that expect and work best in IE7 Standards Mode to work in IE8ís more standards-compliant default mode. For everyone else, IE8 includes Compatibility View Settings.

    The best experience here is one that works automatically as the web developer intended. This is why we created the Compatibility View List. Itís also important to give users the ability to fix websites that arenít on the list yet through the Compatibility View button.

  3. Web developers are in control of how their content renders. The X-UA-Compatible meta tag and header override IE and user settings. They also provide web developers with fine-grain control over how each webpage renders in IE.

    For example, some websites have pages written for Quirks and others for IE7 Standards. When IE receives an X-UA-Compatible header with an EmulateIE7 value from servers, it renders each page in the appropriate Quirks or IE7 Standards Mode.

  4. Give web developers tools and time to help transition their content to IE8 Standards. IE8 introduced the X-UA-Compatible meta tag and header to provide web developers time to transition their websites to IE8 Standards. As mentioned above, many websites have already used this mechanism to specify that their content should run in IE7 Standards Mode.
A Diagram on How IE8 Determines Document Mode

Given the above principles, there are four rules that you can remember about how IE handles doctype, X-UA-Compatible meta tag and header, Developer Tools, and Compatibility View Settings. These rules follow the diagram below from top to bottom:

  1. The Developer Tools settings override all Document Modes for pages displayed in a tab.
  2. The X-UA-Compatible meta tag and then header override Compatibility View Settings and the doctype unless the X-UA-Compatible value is EmulateIE7 or EmulateIE8.
  3. The userís Compatibility View Settings override the Microsoft Microsoft Compatibility View List.
  4. If none of the above rules apply, the doctype determines whether the webpage renders in IE8 Standards, IE8 Almost Standards or Quirks Mode.
Compatibility and interoperability are complex. To reduce complexity for developers and users alike, we would love to see websites transition from legacy browser modes. We respect that the choice of mode is up to the site developer. Weíre excited to work with sites and standards bodies to continue improving IEís implementation of interoperable standards.

Many thanks to Jesse Mohrland for verifying the diagram.

Marc Silbey
Program Manager


My System SpecsSystem Spec

 How IE8 Determines Document Mode

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
New Document
Hello All and welcome to what is probably the daftest question you'll ever read on here. After many happy years with XP, I've installed 7. Finding my way slowly but..................for the life of me, I can't find out how to open a fresh page on which to write a new document. I've probably seen...
General Discussion
Credential Mgr- What determines persistence?
How is or what determines whether a credentials persistence is "Enterprise" or "Logon Session"? Is there a way to change persistence? I have several users who continually have to enter their password in Outlook(2007 or 2010) when first started. The only difference(that I can see) between the...
General Discussion
Word 2007 - Links within a document? Hide/Show sections of a document?
I have two questions regarding documents created in Word 2007... 1) Can links be created within a Word document? For example, can I click on and item my table of contents and have the document jump to that particular section of the document? 2) Also, is there a way to make sections of the...
Microsoft Office
Can't Find Document
When I create a text file in either Open Office or MS Works and then save it, I can find it and open it in the program that created it, but NOT in the Documents library! Why?
General Discussion
Document & Settings
Why can't I see "Documents and Settings" In win7. I have no trouble locating it in XP.? Only had win7 a few days and it is driving me crazy!!
General Discussion
MS XPS Document Writer
Just what is 'MS XPS Document Writer', that came installed with my W7 OS? What can I use it for?
Hardware & Devices

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 09:39.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App