paul
paul

Reputation: 572

what is causing IE8 to render in IE7 mode by default

this site : http://medisra.sideradesign.com it is rendering in IE7 document mode by default. Is this due to a CSS or HTML validation error? how can I identify what's causing it? thanks

Upvotes: 1

Views: 5807

Answers (3)

thirtydot
thirtydot

Reputation: 228302

Here's all the places I can think of where the header could be coming from.

Considering your comment:

I have other subdomains on the same server and the sites render in standards mode.

It's unlikely to be defined in Apache's httpd.conf or similar.

  • Have you made 100% sure there are no other .htaccess files or other configuration files which could be introducing it?
  • Is your PHP code outputting the header? It would look like this in PHP:
    header('X-UA-Compatible: IE=EmulateIE7');
  • Could it perhaps be the fault of a Wordpress plugin?

You could use a utility to search in every single file of the website for the string "EmulateIE7".

If you still can't find it after following through those ideas, I'm afraid I can't think of anything else.

Upvotes: 2

misterjinx
misterjinx

Reputation: 2616

Check in the source of that page if the head contains the following meta tag:

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

If it does, that's why it renders the page like IE7 by default.

Upvotes: 0

user356808
user356808

Reputation:

This is a good reference about defining document compatibility mode.

This will render all pages on the site in IE7

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <clear />
        <add name="X-UA-Compatible" value="IE=EmulateIE7" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>
</configuration> 

Upvotes: 0

Related Questions