Is it still valid to use IE=edge,chrome=1?

112,156

Solution 1

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> serves two purposes.

  1. IE=edge: specifies that IE should run in the highest mode available to that version of IE as opposed to a compatability mode; IE8 can support up to IE8 modes, IE9 can support up to IE9 modes, and so on.
  2. chrome=1: specifies that Google Chrome frame should start if the user has it installed

The IE=edge flag is still relevant for IE versions 10 and below. IE11 sets this mode as the default.

As for the chrome flag, you can leave it if your users still use Chrome Frame. Despite support and updates for Chrome Frame ending, one can still install and use the final release. If you remove the flag, Chrome Frame will not be activated when installed. For other users, chrome=1 will do nothing more than consume a few bytes of bandwidth.

I recommend you analyze your audience and see if their browsers prohibit any needed features and then decide. Perhaps it might be better to encourage them to use a more modern, evergreen browser.

Note, the W3C validator will flag chrome=1 as an error:

Error: A meta element with an http-equiv attribute whose value is
X-UA-Compatible must have a content attribute with the value IE=edge.

Solution 2

It's still valid to use IE=edge,chrome=1.

But, since the chrome frame project has been wound down the chrome=1 part is redundant for browsers that don't already have the chrome frame plug in installed.

I use the following for correctness nowadays

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

Solution 3

<head>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>

worked for me, to force IE to "snap out of compatibility mode" (so to speak), BUT that meta statement must appear IMMEDIATELY after the <head>, or it won't work!

Share:
112,156
Brennan Sei
Author by

Brennan Sei

Updated on July 05, 2022

Comments

  • Brennan Sei
    Brennan Sei almost 2 years

    I read Chrome Frame closed last month, I thus tried to understand what it'd mean for the X-UA tag and after 3 hours of research I still didn't find the answer I'm looking for, my question is the following :

    Is it still valid nowdays to use IE=edge,chrome=1 or should I stop at IE-edge from now on ? Or what would be the best pratice to do regarding X-UA, should it be avoided ?

  • Brennan Sei
    Brennan Sei about 10 years
    Thanks a lot for the explaination, it helped me a lot.
  • Stan
    Stan about 9 years
    Unfortunately, Google Chrome Frame was discontinued in January 2014 (blog.chromium.org/2013/06/retiring-chrome-frame.html). It's still available to download from mirrors but it won't be further developed.
  • Michael K
    Michael K almost 9 years
    I'll add - that meta line doesn't validate in the W3C Validator. I had it too. I'm removing the chrome=1 at this point.
  • felickz
    felickz over 8 years
    Note, this does not force IE11 in enterprise mode (IE8 compat) into any different rendering modes. IE11 in compatibility mode is indeed forced to upscale.
  • Jordan Clark
    Jordan Clark over 8 years
    There should not be a need to get IE to "snap out of compatibility mode" via a META element - a strict HTML4/XHTML1 doctype, or the new, simplified HTML5 doctype (i.e. <DOCTYPE html>) will trigger Standards Mode in Internet Explorer (as well as all other popular browsers.)
  • Luke Harris
    Luke Harris over 8 years
    The meta element is still required even with IE11 if the site is on an Intranet, since by default IE11 runs these sites in compatibility mode.
  • Chinoto Vokro
    Chinoto Vokro about 8 years
    To avoid validation errors, set it as a true http header instead of using a meta tag. This has the added benefit of not requiring IE to reparse using a different engine when it hits the meta tag because it already knows which engine to use before it even looks at your markup. validatethis.co.uk/news/… (Rendering Speed)