Emulate IE7 for IE8 but not for IE9 using “X-UA-Compatible”

I just had a play and found the following works for me: <meta http-equiv=”X-UA-Compatible” content=”IE=7,IE=9″ > That is with a comma not a semi colon! I haven’t looked at the spec, but the format is similar to content=”IE=7,chrome=1″ that works for Chrome Frame. I also found that content=”IE=7,9″ works but I suspect that is not … Read more

How to forcefully set IE’s Compatibility Mode off from the server-side?

I found problems with the two common ways of doing this: Doing this with custom headers (<customHeaders>) in web.config allows different deployments of the same application to have this set differently. I see this as one more thing that can go wrong, so I think it’s better if the application specifies this in code. Also, … Read more

Bad value X-UA-Compatible for attribute http-equiv on element meta

Either X-UA-Compatible is not “standard” HTML (FSVO “standard” that involves appearing on a publicly editable wiki page referenced by the specification) or the Validator isn’t up to date with the current status of that wiki. At the time of writing (20130326) X-UA-Compatible appears on the wiki page under a section that states: “The following proposed … Read more

How do I force Internet Explorer to render in Standards Mode and NOT in Quirks?

This is the way to be absolutely certain : <!doctype html> <!– html5 –> <html lang=”en”> <!– lang=”xx” is allowed, but NO xmlns=”http://www.w3.org/1999/xhtml”, lang:xml=””, and so on –> <head> <meta http-equiv=”x-ua-compatible” content=”IE=Edge”/> <!– as the **very** first line just after head–> .. </head> Reason : Whenever IE meets anything that conflicts, it turns back to … Read more

Force “Internet Explorer 8” browser mode in intranet

Seem that MSFT has not consider a large intranet environment that we have many different web application running inside. There is no way to bypass the IE8 setting, according to somewhere I read on MSDN forum. So, I will have to beg my system administrators to put some new group policies to change “Compatibility View” … Read more

X-UA-Compatible is set to IE=edge, but it still doesn’t stop Compatibility Mode

If you need to override IE’s Compatibility View Settings for intranet sites you can do so in the web.config (IIS7) or through the custom HTTP headers in the web site’s properties (IIS6) and set X-UA-Compatible there. The meta tag doesn’t override IE’s intranet setting in Compatibility View Settings, but if you set it at the … Read more

“X-UA-Compatible” content=”IE=9; IE=8; IE=7; IE=EDGE”

If you support IE, for versions of Internet Explorer 8 and above, this: <meta http-equiv=”X-UA-Compatible” content=”IE=9; IE=8; IE=7″ /> Forces the browser to render as that particular version’s standards. It is not supported for IE7 and below. If you separate with semi-colon, it sets compatibility levels for different versions. For example: <meta http-equiv=”X-UA-Compatible” content=”IE=7; IE=9″ … Read more