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

Re: Suggestion: Check elment first, attribute second

From: Nick Kew <nick@webthing.com>
Date: Thu, 2 Aug 2001 21:02:24 +0100 (BST)
To: Bryce Nesbitt <bryce@obviously.com>
cc: www-validator@w3.org
Message-ID: <Pine.BSF.4.21.0108022050070.465-100000@fenris.webthing.com>

On Thu, 2 Aug 2001, Bryce Nesbitt wrote:

> The validator could declare "I don't know what a script looks like in terms of
> syntax" and ignore everything inside the <SCRIPT> container.

First you have to define "inside the <SCRIPT>".  It's not as simple as you

> 	<SCRIPT language="linenoise">
> 		*(@(*#&(@#&(@#@^%^%#@#@{@#@}#@}#{@}]{@}{#}@#{@&%%%%%;!<<!
> 	</SCRIPT>

To take the simplest case in point,

	<SCRIPT language="linenoise">

In real life, it's not always so obvious when that kind of thing happens.
To get rid of the complexity, you'd need to abandon the formulation of
HTML or XHTML as SGML or XML - and the validator would be meaningless.

In any case, if your script causes validator errors, then you haven't
properly understood scripting.  You've already referenced htmlhelp.com,
which has ample tutorial material.

> If the validator EXECUTED the JavaScript, it could check the result.  Since
> that's impractical, at least it can get out of the way, and not complain about
> syntax it does not understand.

It's perfectly feasible for a validator to include a script interpreter
But noone has done it.  Find me a sponsor and I'll be happy to do it!
In fact, I'd be interested to create a value-added validator that will
be useful *also* as a linter and diagnostic tool for script contents.

Nick Kew

Site Valet - the essential service for anyone with a website.
Received on Thursday, 2 August 2001 16:10:42 UTC

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