Difference between "Browser Mode" and "Document Mode" in Internet Explorer

Internet ExplorerInternet Explorer-9

Internet Explorer Problem Overview


I´m really glad that I must no more use IETester since IE6 support was dropped in our company and IE9 has some quite cool developer tools. I can set "Browser Mode" and "Document Mode" but I can´t tell the difference. Does anyone know it? This post also didn´t help me out: https://stackoverflow.com/questions/2950598/ie8-browser-mode-vs-document-mode

Thanks

Internet Explorer Solutions


Solution 1 - Internet Explorer

Document Mode is what the browser uses to render the page: IE9, IE8, IE7 or Quirks. Browser Mode sets how the browser identifies itself to the web server and to JavaScript.

From a testing standpoint, it seems unnecessarily confusing that these are two separate options and you usually want to change both, for example, set the Browser mode to IE8 and the Document Mode to IE8 to get IE9 to pretend to be IE8.

There's also the Internet Exploer 9 Compatibility View option for Browser Mode. This seems to be the same as IE7 mode except the user-agent string also says "Trident/5.0" (Trident is the IE layout engine).

Solution 2 - Internet Explorer

In no way this will replace @mhenry1384's answer, but there is also a very good explanation of the differences on the MSDN blogs, more specifically this section:

enter image description here

and here a little more useful info:

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAlex LawrenceView Question on Stackoverflow
Solution 1 - Internet Explorermhenry1384View Answer on Stackoverflow
Solution 2 - Internet ExplorerGaiaView Answer on Stackoverflow