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

Re: Feature request: validation by snippet

From: David Håsäther <hasather@gmail.com>
Date: Thu, 22 Mar 2007 12:15:00 +0100
To: "Stephanie Troeth" <steph@unadorned.org>
Cc: www-validator@w3.org
Message-ID: <op.tpk77azep8frts@hasather.net>

Stephanie Troeth wrote:

> Working with some folks familiar with CMS issues, the point was raised
> that it would make it easier on developers to continually check if they
> are creating valid markup if validators allow validation by snippet
> rather than a full document. As a developer myself, I know my own team
> and I would find this very useful.

This doesn't make sense at all in my opinion. You can't just fit together  
some snippets and expect the document to be valid. Consider for example  
that you validate the following surrounded by the dummy content

   <div>...</div>

It validates fine of course, so you put it somewhere in the document

   <p>
      ...
      <div>...</div>
      ...
   </p>

Oops. Not valid anymore. You're then back to square one, trying to figure  
out why the _whole_ document doesn't validate.

I also suspect that this will lead to questions such as "these two  
snippets validate fine, but when I put them together it doesn't validate  
anymore. Is the validator broken??!?1".

-- 
David Håsäther
Received on Thursday, 22 March 2007 18:18:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:24 GMT