0

I am using Bootstrap 3.

When I add <meta http-equiv="X-UA-Compatible" content="IE=edge">, the site shows error in the W3C validator.

unor
  • 92,415
  • 26
  • 211
  • 360
  • 1
    You could remove it and have something go wrong in IE, or leave it there and fail validation. I know what I'd do. – alex Mar 20 '14 at 05:16

3 Answers3

1

From my answer to a similar question:

In (X)HTML5, you may only use http-equiv values that are

The value X-UA-Compatible is not defined in the spec, but it’s proposed in the wiki. "Proposed" means:

The following proposed extensions do not yet conform to all the registration requirements in the HTML spec and are therefore not yet allowed in valid documents.

So currently it’s not valid to use this value in (X)HTML5.

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360
1

You can do:

<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<![endif]-->
Marcin Nabiałek
  • 109,655
  • 42
  • 258
  • 291
stephen
  • 11
  • 1
0

The validator is extremely pedantic. It's best to just ignore this particular validation warning, given its significant pragmatic benefit and complete lack of downsides. It's not an error of any kind in any of the major browsers.

cvrebert
  • 9,075
  • 2
  • 38
  • 49