Reputation: 572
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
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.
.htaccess
files or other configuration files which could be introducing it?header('X-UA-Compatible: IE=EmulateIE7');
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
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
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