[whatwg] Why are form fields without a name barred from constraint validation?

Hi Bruce,

On Fri, 02 Apr 2010 09:57:04 -0000
"Bruce Lawson" <brucel at opera.com> wrote:

> "Constraint validation: If an element does not have a name attribute  
> specified, or its name attribute's value is the empty string, then it is  
> barred from constraint validation."
> 
> http://dev.w3.org/html5/spec/forms.html#naming-form-controls
> 
> 
> As a matter of interest, why?

Because such controls are ignored when the form is submitted.
http://dev.w3.org/html5/spec/forms.html#form-submission-algorithm
Nameless controls are meaningless in form submission.
So, those controls do not need to be validated, I think.

--
Futomi Hatano
http://www.html5.jp/
http://www.futomi.com/
http://twitter.com/futomi

Received on Friday, 2 April 2010 02:28:50 UTC