Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between IE8 & EmulateIE8

I added a compatibility mode meta tag at the top of the header to force the browser to render in IE8 mode. It is working with IE10 & IE11 but not with IE9.

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

Can any one explain what I am doing wrong here? Should I use content="IE=EmulateIE8" instead of content="IE=IE8"?

like image 757
dIvYaNsH sInGh Avatar asked Apr 10 '14 11:04

dIvYaNsH sInGh


People also ask

What is ie7 and IE8?

Windows Internet Explorer 8 (IE8) is a web browser for Windows. It was released by Microsoft on March 19, 2009, as the eighth version of Internet Explorer and the successor to Internet Explorer 7.

Is IE8 still used?

Microsoft officially stopped supporting IE8, IE9 and IE10 over three years ago, and the Microsoft executives are even telling you to stop using Internet Explorer 11.

What is IE8 Enterprise mode?

Enterprise Mode gives you a way for your legacy websites and apps to run using emulated versions of Windows Internet Explorer 7 or Windows Internet Explorer 8, while your new sites and apps run using Internet Explorer 11, including modern standards and features.

Should I support IE8?

So what should you do? Even if a relevant number of your users still use legacy IE browsers, do not support them. If your site breaks in IE10, IE9 or IE8, let it break and force users to look for safer alternatives.


Video Answer


1 Answers

Well, following the links provided by Carpetsmoker and www.sblog.in I end up with a broad answer and improved with more sources. This is what I found:

Starting with the IE8 Beta2 there is a new way to make you site compatible. This way is know as IE=EmulateIE7 (It supports newer browser too like in your question).

In the same link was provided this:

IE=7: Display in IE7 Standards mode.

IE=EmulateIE7: Display standards DOCTYPEs in IE7 Standards mode; Display quirks DOCTYPEs in Quirks mode.

So basically when you are specifying the version like IE=8 you are make it clear that the page needs to use the most advanced standards that browser use to have and not exactly the wayt it would render.

In the other way if you specify IE=EmulateIE8 the browser will make a decision if it will render with the version standards or with quirks mode. So if IE8 use to render www.example.com with its quirks mode, IE11 receiving IE=EmulateIE8 will make the same choice.

In the compatibility perspective the proper way to make a page backward compatible you choose use the Emulate version always.

I've found this very useful chart demonstrating the path IE uses to determine witch Document Mode it uses and you can see where the decisions change because the Emulate version of the tag.

P.S.

I won't paste the image directly here because it too large to fits in this Q&A width.

like image 178
Vitor Canova Avatar answered Sep 29 '22 10:09

Vitor Canova