Under certain circumstances (eg intranet sites), IE8+ falls into "compatibility" mode. This breaks all kinds of CSS (eg menu bar) and makes it right impossible to use some JS stuff:
http://drupal.org/node/1991774
The fix is to include
<meta http-equiv="X-UA-Compatible" content="IE=edge">
right after the tag in html.tpl.php.
If it's inserted later, it might not work.
For background, please see:
http://stackoverflow.com/questions/6348959/how-to-disable-compatibility-...
and
http://msdn.microsoft.com/en-us/library/dd567845%28v=vs.85%29.aspx
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | prevent-compatibility-mode-1992148-14.patch | 1.93 KB | BarisW |
| #14 | interdiff-12-14.txt | 471 bytes | BarisW |
| #12 | prevent-compatibility-mode-1992148-12.patch | 1.3 KB | BarisW |
| #8 | html.tpl_.php_1992148.diff | 538 bytes | mkesper |
| #3 | html.tpl_.php_.diff | 529 bytes | mkesper |
Comments
Comment #1
mkesper commentedComment #2
mkesper commentedComment #3
mkesper commentedDiff added.
N.B.: This affects all IEs > 7, even IE10.
Comment #4
Fugazi-2 commented<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">would be better choice as it will enable chrome frame if someone has it in addition to forcing IE to using newest mode.Comment #5
mkesper commentedInteresting, never heard about Google Chrome Frame before...
Comment #6
mkesper commentedAs a feature request, changed applying version to 8x-dev
Comment #7
ry5n commented+1 to #4.
Comment #8
mkesper commentedPatch including chrome window option
Comment #9
David_Rothstein commentedI got pinged on IRC about this issue about a month ago (I haven't been going on IRC much lately so I didn't see it until now!).
Need anything from me here still?
Comment #10
mkesper commentedHow can we establish this as default?
Comment #11
longwaveChrome Frame is being discontinued as of January 2014, so perhaps not worth adding any specific support for it: http://blog.chromium.org/2013/06/retiring-chrome-frame.html
Comment #11.0
longwaveAdded chrome=1 option
Comment #12
BarisW commentedHere's a patch to implement the proposed tag in the OP now that Google Chrome will be discontinued.
Comment #14
BarisW commentedTry again?
Comment #14.0
BarisW commentedChrome frame dropped as per #11
Comment #15
jhedstromComment #16
idebr commentedI believe this was fixed already in #1203112: Add X-UA-Compatible HTTP header
Related change record: https://www.drupal.org/node/1511040