Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forcing IE 11 to behave as IE 10

Tags:

We've run into an unusual bug with Internet Explorer and we need to force IE 11 to behave as IE 10 (since this bug is not present in IE 10).

I have tried the following:

    <meta http-equiv="x-ua-compatible" content="IE=10"> 

but unfortunately this does not work and I have not found anything relevant or helpful from Google searches or the docs. So how do we get IE 11 to behave as IE 10?

like image 202
jAsOn Avatar asked Sep 03 '13 09:09

jAsOn


People also ask

How do I force Edge compatibility mode in IE?

1) Click the Windows button and type Internet Explorer in the Start Menu. IE11 will appear. Select it. Next, click on Tools > Compatibility settings > click ADD to manually add the web site in compatibility mode.


1 Answers

Do the following:

  1. The correct meta string is: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10"/> (I added it just below the <title>. Preserve case, IE crappy code might be also case sensitive.)

  2. And a valid <!DOCTYPE... must be present at the very 1st line of your page (no space or lines before it)

You can verify if it works by hitting F12 to show the IE11 developer tools. On the left side there is a grey bar, scroll it down and select Emulation, if it shows Document mode: IE10 it will be fine!

like image 182
Marco Demaio Avatar answered Sep 26 '22 02:09

Marco Demaio