Difference Between IE8 and EmulateIE8

I have added a compatibility mode meta tag at the top of the header to make the browser display in IE8 mode. It works with IE10 and IE11, but not with IE9.

<meta http-equiv="X-UA-Compatible" content="IE=IE8" /> 

Can someone explain what I'm doing wrong here? Should I use content = "IE = EmulateIE8" instead of content = "IE = IE8"?

+7
javascript html internet-explorer meta-tags
source share
1 answer

Well, after the links provided by Carpetsmoker and www.sblog.in , I get a broad answer and improve with a lot of sources. Here is what I found:

Starting with IE8 Beta2, there is a new way to make your site compatible. This method is known as IE=EmulateIE7 (it supports a newer browser, as in your question).

In the same link, the following was provided:

IE = 7 : display in IE7 standards mode.

IE = EmulateIE7 : DOCTYPE display standards in IE7 standards mode; Display quirks of DOCTYPE in Quirks Mode.

So basically, when you specify a version like IE=8 , you make it clear that the page should use the most advanced standards used by the browser, and not exactly how to do it.

Otherwise, if you specify IE=EmulateIE8 , the browser will decide if it will be displayed using version standards or with quirks mode. Therefore, if IE8 used to render www.example.com with its quirks mode, IE11 getting IE=EmulateIE8 will make the same choice.

In a compatibility perspective, the right way to do the backward compatibility of the page you choose always uses the Emulate version.

I found this very useful graph demonstrating the IE path used to determine the witch Document Mode that it uses, and you can see where the solutions change since the Emulate tag version.

PS

I will not embed the image right here because it is too large to fit into this Q & A width.

+5
source share

All Articles