1
votes

IE8 has it's own bugs which are not present in IE6, IE7, IE8 compat. mode and IE9 beta... i.e.: http://forum.jquery.com/topic/hidden-visible-broken-in-ie8

Is there any way to force compatibility mode for IE8 only?

  1. When i try to put in the header something like:

  <meta http-equiv="X-UA-Compatible" content="IE=IE7; IE9" />

IE8 doc type falls back to IE8 mode

  1. When i try:

    <!--[if IE 8]>
        <meta http-equiv="X-UA-Compatible" content="IE=7"/>
    <![endif]-->
    

IE8 renders the meta-tag but completely ignores it

Am i out of options, except for turning IE7 document mode for every IE>7 ?

3

3 Answers

3
votes
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9" />

This makes IE8 go into IE7 Compatibility mode, but leaves IE9 alone in IE9 mode.

0
votes

Try the following without semi-colon

<!--[if IE 8]>
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
<![endif]-->

This works for me and the test http://forum.jquery.com/topic/hidden-visible-broken-in-ie8 also works

Let me know if this works for you as well

0
votes

this sets your your old browser i.e IE 6,5 or 8 content compatible automatic,even if you working on latest browser i.e 10 or 11 Eg: this is for IE7.......

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