- 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
> >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 UTC