W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

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

From: Futomi Hatano <info@html5.jp>
Date: Fri, 02 Apr 2010 18:28:50 +0900
Message-ID: <20100402182849.A1E2.C8DE7135@html5.jp>
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.
Nameless controls are meaningless in form submission.
So, those controls do not need to be validated, I think.

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC