W3C home > Mailing lists > Public > www-validator@w3.org > January 2016

Re: W3validator errors

From: David Dorward <david@dorward.me.uk>
Date: Mon, 11 Jan 2016 22:58:16 +0000
To: Newbie <newbie@orthohelp.com>
Cc: www-validator@w3.org
Message-ID: <056DFB20-E2F6-4D51-BAEA-321751A1631B@dorward.me.uk>
On 9 Jan 2016, at 19:21, Newbie wrote:
> What I find confusing are the errors from "Line 15" down. The validator essentially finds error in the javascript code which should not be errors.
> How can I prevent the w3validator from even looking at the javascript code? Or should I do something else?


> Question 2:
> Most of the code was originally written as html. Why is the validator checking it as xhtml?

The first two lines of the document are:

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

… it checks it as XHTML because you are explicitly telling it that it is XHTML.

David Dorward

Received on Monday, 11 January 2016 22:58:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:14 UTC