Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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: IE8 browser mode vs document mode

Thanks

like image 373
Alex Lawrence Avatar asked Jul 12 '11 08:07

Alex Lawrence


2 Answers

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).

like image 125
mhenry1384 Avatar answered Oct 19 '22 02:10

mhenry1384


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

like image 37
Gaia Avatar answered Oct 19 '22 03:10

Gaia