W3C home > Mailing lists > Public > www-validator@w3.org > February 2005

Re: NAME attribute of INPUT element should be required?

From: Paul Norman <penorman@mac.com>
Date: Wed, 23 Feb 2005 21:57:33 -0500
To: Jonatan Lander <jonatan@wineasy.se>
cc: www-validator@w3.org
Message-ID: <r02010400-1038-D52EEC00860F11D98844001124301DAA@[]>

>Quoting from the section on the INPUT element in the HTML 4.01 spec
>   "<!-- attribute name required for all but submit and reset -->"
>I interpret this to mean that the NAME attribute for the INPUT element
>is required except for when the INPUT element is either
><input type="submit"> or <input type="reset">. Yet the following code
>validates. Why doesn't it generate nine (eleven minus two) errors?

The requirement for a name attribute with some types of inputs but not
others is not expressed in the DTD, aside from that comment. As it isn't
expressed in the DTD, validating against the DTD won't give an error.

Paul Norman
Received on Thursday, 24 February 2005 02:57:38 UTC

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