1

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

3
  • 1
    Highly relevant: X-UA-Compatible: IE=EmulateIE7 is one of the HTTP response headers being served to IE8. The real question is, where is that header being set from?
    – thirtydot
    Jan 26, 2011 at 13:29
  • Just an FYI, after having looked over your previous posts, I notice a couple things that you may think about doing. 1. When/if a suitable answer is given, please mark it as the answer. 2. It seems the majority of your posts are regarding the document compatibility mode. I suggest you do research on document compatibility before asking 4+ questions that are directly related to that topic. The answers are out there. I provide a great reference to help you get familiar with document compatibility in my answer. See below.
    – user356808
    Jan 26, 2011 at 14:13
  • 1
    I had a similar problem with IE9 always coming up in IE7 'Document Mode' even though IE9 was the page default. I had "<!DOCTYPE html>" at the top of my page and no mention of "<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />". IE was in Compatability Mode. (go to the menu => Tool => Compatability Mode and uncheck. Hope this helps someone.
    – tkerwood
    Nov 16, 2011 at 5:24

3 Answers 3

2

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.

4
  • BINGO! I found this in the Thesis theme compatibility.php file : if (preg_match("/MSIE 8.0/", $browser) && !is_admin()) header('X-UA-Compatible: IE=EmulateIE7');
    – paul
    Jan 26, 2011 at 15:58
  • but I can't just comment it out because if the theme is updated, it will be overridden. I wonder if it's possible to override it
    – paul
    Jan 26, 2011 at 15:59
  • Haha, I'm glad you finally found it :) I don't know much about Wordpress internals, but a quick Google search found this. It looks like someone else has had the same problem.
    – thirtydot
    Jan 26, 2011 at 16:03
  • thanks thirtydot! you've been very helpful. I don't like working with the Thesis theme, but it was a client requirement, so...
    – paul
    Jan 26, 2011 at 16:15
0

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> 
1
  • the web server is apache. I have other subdomains on the same server and the sites render in standards mode.
    – paul
    Jan 26, 2011 at 15:11
0

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.