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

Futomi Hatano info at html5.jp
Fri Apr 2 02:28:50 PDT 2010


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




More information about the whatwg mailing list