W3C home > Mailing lists > Public > www-validator@w3.org > April 2012

Re: X-UA-Compatible causes extraneous errors in the validator for an html5 page

From: Robert K. Foster <rkfoster@thewindjammer.com>
Date: Wed, 11 Apr 2012 14:47:25 -0400
Message-ID: <CAA0DoA70tWCYAHzqBTbi6=CJDKm7FM5SDR9ZpdwtG1pkuDF+Pw@mail.gmail.com>
To: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Cc: David Dorward <david@dorward.me.uk>, www-validator@w3.org
Benjamin,

Thanks for clarifying the use of X-UA-Compatible. I learned this from
another developer and was not sure why the meta tag was necessary. Is this
in order to make the html code that immediately follows it be seen by other
IE browsers? Here's the code:

<meta http-equiv="X-UA-Compatible" content="IE=9" />
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

I would prefer to remove the meta tag entirely but I'm not sure what effect
that would have on rendering of the html5 code in IE browsers.

Thanks,
Bob

|  Robert K. Foster, Owner
|  Windjammer Company LLC
|  Web Design and Internet Services
|  rkfoster@thewindjammer.com
|  http://www.thewindjammer.com/
|  http://www.linkedin.com/in/robertkfoster




On Mon, Apr 9, 2012 at 1:56 PM, Benjamin Hawkes-Lewis <
bhawkeslewis@googlemail.com> wrote:

> On Mon, Apr 9, 2012 at 5:40 PM, Robert K. Foster
> <rkfoster@thewindjammer.com> wrote:
> > But I am not aware of another way currently to make html5
> > compatible with older browsers.
>
> Note X-UA-Compatible does not make "HTML5 compatible with older
> browsers"; it's mostly used to force newer versions of IE to pretend
> to act like older versions.
>
> --
> Benjamin Hawkes-Lewis
>
Received on Wednesday, 11 April 2012 18:47:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:50 GMT