W3C home > Mailing lists > Public > www-validator@w3.org > September 2007

Re: Feedback on WWW Validator

From: David Dorward <david@dorward.me.uk>
Date: Tue, 11 Sep 2007 09:20:50 +0100
Message-Id: <6B3FB63A-0F2C-4A41-AF92-E85AB7364717@dorward.me.uk>
To: Dan Short <danshort@gte.net>, www-validator Community <www-validator@w3.org>


On 11 Sep 2007, at 01:07, Dan Short wrote:

> I do not think that I agree with that.

It is fact, not opinion.

> My form is used to enter snippets of HTML for later retrieval and  
> formatting with a PHP script. The browser does not interpret the  
> HTML tags within the textarea, but simply renders the text of the  
> tags within the textarea as written.

Browsers perform error recovery.
The validator tests against the DTD.

If you want to compare your code against the ability of various  
browsers to parse it, then test it in browsers (of course, to test in  
every browser that exists, with all their different abilities to  
recover from errors, is a very time consuming task). If you want to  
compare it against the standard (or at least that part of it which is  
expressed in the DTD), then use the validator.

> I do not see any reason that any kind of text at all should not be  
> allowed within the textarea.

The specification doesn't allow "any kind of text at all".

> The page containing the form with the textarea validates as XHTML  
> 1.0 Strict when the form is empty, but the validator rejects it  
> when the textarea within the form happens to contain some HTML tags.

That is because it is invalid.

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
Received on Tuesday, 11 September 2007 08:22:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:09:00 UTC