Question

The URL of the site I am working on ended up on Microsoft compatibility list. This means that every time IE users visit it, IE9 mode is forced on which makes it impossible to use modern CSS or Javascript.

enter image description here

First 6 lines of every HTML document on the site look like these. There are no conditional comments. I also tried to put <title> title immediately after the <head> without any success.

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta charset="utf-8">
        <title>...</title>

Response HTTP headers always contain

X-UA-Compatible     IE=Edge

But it does not appear to make any difference. The only thing that forces IE off IE9 mode is this checkbox in the Setting dialog. Only when it is unset, the site is displayed in the Edge mode.

enter image description here

Plus, I recently found that Microsoft's iecompatdata.xml contains featureSwitch="overrideXUACompatible:false" attribute next to the site entry.

Is there anything else I can try to prevent my site from being displayed in IE compatibility mode?

Was it helpful?

Solution

If the site is on Microsoft's compatibility view list, you'll need to get them to remove it.

According to this page, you need to email iepo@microsoft.com with the following information and ask that your site be removed from the list:

  • Owner Name
  • Corporate Title
  • Email Address
  • Telephone Number
  • Company Name
  • Street Address
  • Website Address

OTHER TIPS

Send it as a header instead. By the time the meta tag is interpreted, the decision may already have been made; this will not be the case with the header.

More detail and instructions at this other SO post's answer.

You may have already seen this... Force IE compatibility mode off using tags

This response in particular may be of interest...

"I have found that this does NOT work if the user (or the sysadmin) has turned on compatibility mode as a default by going to Tools->Compatibility View Settings, and checking Display all websites in Compatibility View. To fix the problem, I have to return the header in the HTTP response: X-UA-Compatible: IE=edge" – speedplane Apr 19 '13 at 11:29

Also... "Word of advice for those who find this answer, but are unable to get it to work for them. The compatability meta tag MUST be the first meta tag, and there can be NO IE conditional statements before the tag." More: tesmond.blogspot.com/2011/10/… – Chris Sobolewski

Is your meta the first one on the page?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top