- 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
Received on Monday, 11 January 2016 22:58:52 UTC
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?
https://www.w3.org/TR/xhtml1/#h-4.8
https://www.w3.org/TR/xhtml-media-types/#C_4
> 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
http://dorward.co.uk/
Received on Monday, 11 January 2016 22:58:52 UTC