W3C home > Mailing lists > Public > www-validator@w3.org > August 2017

Re: [www-validator] <none>

From: David Dorward <david@dorward.me.uk>
Date: Fri, 25 Aug 2017 23:36:56 +0100
To: "Eric Richards" <2eric.richards@gmail.com>
Cc: "www-validator Community" <www-validator@w3.org>
Message-ID: <4C4D3D0D-A125-41A7-B413-EF8C0D451858@dorward.me.uk>


On 25 Aug 2017, at 23:34, Eric Richards wrote:

> Ok here is a error that comes up in JavaScript
>
> if you had "and" in  a "if" statement like  example
>
> if (navigator.family == "ie4" *&* navigator.version < 4.1)

You are using XHTML, but are presumably serving it with a text/html 
content-type (so the browser isn’t treating it as XHTML).

See:

* https://www.w3.org/TR/xhtml1/#h-4.8
* https://www.w3.org/TR/xhtml-media-types/#C_4
Received on Friday, 25 August 2017 22:37:20 UTC

This archive was generated by hypermail 2.3.1 : Friday, 25 August 2017 22:37:27 UTC