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

Comments

mkesper’s picture

Title: Ptevent Drupal being broken in Internet Explorer 8+ » Prevent Drupal being broken in Internet Explorer 8+
mkesper’s picture

Title: Prevent Drupal being broken in Internet Explorer 8+ » Prevent Drupal from being broken in Internet Explorer 8+
mkesper’s picture

StatusFileSize
new529 bytes

Diff added.
N.B.: This affects all IEs > 7, even IE10.

Fugazi-2’s picture

<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.

mkesper’s picture

Interesting, never heard about Google Chrome Frame before...

mkesper’s picture

Title: Prevent Drupal from being broken in Internet Explorer 8+ » Prevent Drupal from being broken in Internet Explorer (sites in intranet)
Version: 7.22 » 8.x-dev
Issue tags: +Usability

As a feature request, changed applying version to 8x-dev

ry5n’s picture

+1 to #4.

mkesper’s picture

StatusFileSize
new538 bytes

Patch including chrome window option

David_Rothstein’s picture

I 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?

mkesper’s picture

How can we establish this as default?

longwave’s picture

Chrome 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

longwave’s picture

Issue summary: View changes

Added chrome=1 option

BarisW’s picture

Status: Active » Needs review
StatusFileSize
new1.3 KB

Here's a patch to implement the proposed tag in the OP now that Google Chrome will be discontinued.

Status: Needs review » Needs work

The last submitted patch, prevent-compatibility-mode-1992148-12.patch, failed testing.

BarisW’s picture

Status: Needs work » Needs review
StatusFileSize
new471 bytes
new1.93 KB

Try again?

BarisW’s picture

Issue summary: View changes

Chrome frame dropped as per #11

jhedstrom’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll
idebr’s picture

Status: Needs work » Closed (duplicate)

I believe this was fixed already in #1203112: Add X-UA-Compatible HTTP header

Related change record: https://www.drupal.org/node/1511040