Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stuck with IE compatibility mode

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?

like image 663
Evgeny Avatar asked Oct 01 '22 13:10

Evgeny


2 Answers

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 [email protected] 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
like image 81
Richard Deeming Avatar answered Oct 12 '22 11:10

Richard Deeming


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.

like image 34
John Haugeland Avatar answered Oct 12 '22 12:10

John Haugeland