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@[69.194.65.139]>

>
>Quoting from the section on the INPUT element in the HTML 4.01 spec
><http://www.w3.org/TR/html401/interact/forms.html#h-17.4>:
>
>   "<!-- 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT