Re: Feature request: validation by snippet

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 UTC