W3C home > Mailing lists > Public > www-validator@w3.org > June 2009

Re: Question regarding W3C validator and ASP.NET

From: Michael A. Peters <mpeters@mac.com>
Date: Tue, 02 Jun 2009 02:38:05 -0700
To: "www-validator@w3.org" <www-validator@w3.org>
Message-id: <4A24F2FD.3070500@mac.com>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:59 UTC