Internet Explorer 8 EmulateIE7 mode not working

I installed IIS6 to send the following headers

Custom Header Name : X-UA Compatible
Custom Header Value : IE = EmulateIE7

which should make IE 8 work in IE 7 compatibility mode. You can learn more about this on MSDN .

I noticed by looking in the developer's toolbar that if I have DTD, the document mode is set correctly in IE 7, but browser mode is IE 8. If there is no DTD on the page, the document mode becomes set again for Quirks and Browser Mode IE eight.

I am doing something wrong. How to get IE 8 to set IE 7 browser mode.

thanks

+4
source share
7 answers

Browser mode refers to the user agent header sent by the browser. Since the UA has already been sent before the response of the HTTP response containing your EmulateIE7 directive, it is too late to change the browser mode; only the document mode changes.

See http://msdn.microsoft.com/en-us/library/dd565628(VS.85).aspx#bdmodes

+4
source

I used this meta tag to force IE7 mode:

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

Important: you must put this before any other tags in the <head> !

(in fact, you could put a <title> before that, but not put anything easier to remember than specific cases)

+6
source

Mark this link

http://ilia.ws/archives/196-IE8-X-UA-Compatible-Rant.html

You must add a custom header as described in the link. Still looking for a titleless solution using a transitional DTD.

+1
source

I think I work as designed. I used this header value without problem.

Do you have problems rendering on your pages? Instead, you can try using IE = IE7.

0
source

found this solution ... hope it works!

Note. You will need to place the title bar before any html is sent to the browser ( http://www.php.net/header )

This is PHP code, the line should be like this:

header ('X-UA-Compatible: IE = 7');

0
source

If you have followed this guide too closely, you will miss the fact that the way to fix web.config is only supported in IIS 7+.

Link to [MSDN] link in OP

Configure Web Servers to Specify Default Compatibility Modes

Site administrators can set their sites to default document compatibility mode by defining a custom header for the site. The specific process depends on your web server. For example, the following web.config file allows Microsoft Internet Information Services (IIS) to define a custom header that automatically displays all pages in IE7 mode.

BUT see: IIS.NET article

 IIS 7.0 The <customHeaders> element of the <httpProtocol> element was introduced in IIS 7.0. 
0
source
  <!-- Use IE7 mode added on 13th October for IE8 BSCI--> <!-- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> --> <!-- Use IE7 mode added on 20th October for IE8 BSCI--> <meta http-equiv="X-UA-Compatible" content="IE=IE7" /> <!--- This appears to work on testing! --> <!-- END --> 

Using 'Emulate' did not work, but IE = IE7 did

0
source

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


All Articles