Extract IE from compatibility mode

I read the following MSDN page:

http://msdn.microsoft.com/en-en/library/cc817574.aspx

And quite a few questions about SO, but I'm not quite sure that I have the answer I want.

We are currently facing a problem when our client upgrades all computers from IE6 to IE8, but through group policy they make IE8 work in compatibility mode.

I assume this is done so that outdated internal applications continue to work. However, this violates our site, since we do not support IE7 100%

Uses the meta tag:

<meta http-equiv="X-UA-Compatible" content="IE=edge"> 

Go to the compatibility mode setting and force our site to use IE8, proving that their group policy is not set to 8888?

8888: pages are always displayed in IE8mode, regardless of directive. (This excludes the exceptions listed earlier.)

+6
source share
1 answer

I usually do this in http headers, so the browser knows this before seeing html. This ensures that it is in the correct mode.

In IIS, in the web.config file:

 <httpProtocol> <customHeaders> <clear /> <add name="X-UA-Compatible" value="IE=edge" /> </customHeaders> </httpProtocol> 

on apache, I don't know. But googling X-UA-compliant IE = Edge should help.

you can do IE = IE9 to fix a specific version.

I do not know that, to be honest, this redefines group policy. But it worked in any scenario that I had to force IE to a specific version, including inside the corporate network on localhost.

+7
source

Source: https://habr.com/ru/post/925626/


All Articles