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

Re: Feature request: validation by snippet

From: olivier Thereaux <ot@w3.org>
Date: Tue, 10 Apr 2007 19:41:56 +0900
Message-Id: <A8C28F10-532A-4E11-A71A-11A9E598A7C9@w3.org>
Cc: www-validator@w3.org
To: Stephanie Troeth <steph@unadorned.org>

Hi Steph, hi all,

On Mar 22, 2007, at 05:05 , Stephanie Troeth wrote:
> Perhaps what is required for validation of snippets, is to  
> automatically wrap the contents of the input with a Doctype (that  
> the user chooses), dummy head content, <html> and <body> wrapper  
> tags for this option?

As I wrote in an earlier reply, I think you are pointing out a real- 
world need. Others have accurately pointed out that it's certainly  
difficult to validate snippets outside of their context.

Based on this, a potential solution I could think of is illustrated at
http://qa-dev.w3.org/wmvs/HEAD/detailed.html#validate-by-input

Using scripting to pre-fill the textarea with basic (X)html document  
structure isn't the same thing as validating snippets. Obviously. But  
I think it does fill a few roles:

* allowing people to validate bits of HTML, without having to type a  
complete HTML document
* does not have to "guess" where in the context of the document the  
snippet is supposed to be (which a validate-snippet feature would  
have to do). Granted, for some levels of cluelessness this is not  
helping, e.g if someone overlooks the "Your HTML content here" note  
and puts HTML in a random location.
* showing what a proper document structure is... a copy-paste away
* last but not least, it happens to be much easier to implement :)

Thoughts?

-- 
olivier
Received on Tuesday, 10 April 2007 10:42:08 GMT

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