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

Jonas Sicking jonas at sicking.cc
Fri Apr 2 10:46:17 PDT 2010

On Fri, Apr 2, 2010 at 12:53 PM, Anne van Kesteren <annevk at opera.com> wrote:
> On Fri, 02 Apr 2010 04:00:04 -0700, Bruce Lawson <brucel at opera.com> wrote:
>> On Fri, 02 Apr 2010 09:28:50 -0000, Futomi Hatano <info at html5.jp> wrote:
>>> 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.
>> Thanks!
> FWIW, there have been some requests on dropping this since nowadays form
> controls are not always associated with a form, but the validity concept can
> still be useful in such scenarios.

Yeah. I think in the interest of 'least surprise', I think such
controls should be validated too. If someone added validation
constraints to such a control, I would think it's more likely than not
that they wanted to control validated.

/ Jonas

More information about the whatwg mailing list