Re: Question regarding W3C validator and ASP.NET

Matt Salmon wrote:

>  
> 
> You’ll notice that in both transitional and strict modes, the viewstate 
> field gets wrapped in a div. Running each of these through the w3c 
> validator shows that this does in fact solve the validation error 
> regarding the underscore character in the id attribute, but if the rule 
> says ‘id’s can’t start with an underscore I don’t understand how the 
> extra div helps; the input id /still/ starts with an underscore!

I'm not sure about the underscore thing but an input node can not be a 
direct child of a form node.

An input can be child of fieldset, div, maybe some others, but not form.
Why the spec was written that way I don't know, but that's the way it is.

Received on Tuesday, 2 June 2009 09:38:45 UTC