views:

137

answers:

1

a client's page that was built for ie7 was tagged using the compatibility mode meta tag, so that it rendered correctly on ie8 as well. this worked for a while. recently, testing the page reveals some severe issues, that are resolved only once the 'compatibility mode' button at the top of the browser is pressed. the tag is correct and is correctly positioned in the document, and the source code hasn't changed. what could have happened?

this is the code:

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

Hi! I had the same problem today! here's the workaround http://starikovs.com/2010/03/12/compatibility-mode-doesnt-work-in-ie8/. It didn't work for me because the <meta> tag that turns on the Compatibility Mode was going after the <script> tag. The Compatibility Mode <meta> tag must go at the beginning of the <head> before any scripts or css styles. So, I decided to write an article about it in my blog :)

Vacheslav
yes, i forgot to close the question :) silly me, that was the problem with the page, someone added some stuff before the meta.
Nir Gavish