I’ve set up IIS6 to send the following headers
Custom Header Name: X-UA-Compatible
Custom Header Value: IE=EmulateIE7
that supposed to force IE 8 into IE 7 Compatibility mode. You can read more about it on MSDN .
I have noticed by looking in the Developer toolbar that if I have a DTD defined the document mode correctly gets set to IE 7, but the browser mode is IE 8. If the page doesn’t have a DTD the document mode gets set to Quirks and Browser Mode once again IE 8.
Am I doing something wrong. How do I force IE 8 to set IE 7 Browser mode.
Thanks
Browser Mode refers to the user-agent header sent by the browser. Since the UA has already been sent before the HTTP response comes back containing your EmulateIE7 directive, it’s too late to change the browser mode; only the document mode is changed.
See http://msdn.microsoft.com/en-us/library/dd565628(VS.85).aspx#bdmodes