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

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 UTC