I have been working on an intranet website for more than 6 months whether I use the below html5 doctype and border compatibility meta tag to prevent Internet Explorer from emulating an older version of the browser, and it worked fine.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>My title</title> <meta http-equiv="X-UA-Compatible" content="IE=EDGE" /> </head> <body> </body> </html>
The reason I do this is because the place I work uses a policy setting to enable compatibility viewing for all intranet sites, and this approach using the EDGE option worked in Internet Explorer 9.

Over a month ago, I was upgraded to Internet Explorer 11, and the site was still working properly.
Today it stopped working as expected, I can’t say for sure, but I think that the policy that forces the compatibility view was not included in IE11, but now it is ... and since it was turned on, the compatibility meta tag no longer does that as expected, and this site starts in Enterprise mode, which emulates IE8.
Does anyone know how to fix this and force IE11 to be used on the intranet site when Enterprise Mode compatibility is applied? and cannot be disabled through browser settings?
EDIT
I just tried adding a custom header to my web.config, as explained in this answer https://stackoverflow.com/a/312618/
and it did not work for me. I am still getting the following message in the console of the developer toolbar
HTML1122: Internet Explorer is running in Enterprise Mode emulating IE8.
It is as if version 8 is considered as EDGE when this intranet compatibility option is enabled in IE11.
This post: https://www.leapinggorilla.com/Blog/Read/1016/ie-ate-my-css---disabling-compatability-mode explains this well, I have not tried setting this header using code yet, and our users do not have access to change the settings of their browser .. none of the other changes have yet worked.
UPDATE
Please see my comment on this post about the difference between Enterprise mode and compatibility mode, because it is important.
html html5 internet-explorer compatibility internet-explorer-11
Pricey Aug 28 '14 at 20:18 2014-08-28 20:18
source share