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

Re: NAME attribute of INPUT element should be required?

From: Jonatan Lander <jonatan@wineasy.se>
Date: Thu, 24 Feb 2005 04:22:46 +0100
Message-Id: <a73de6e5040f7c60b9fcb01ab2ad90a7@wineasy.se>
Cc: www-validator@w3.org
To: Paul Norman <penorman@mac.com>

On 2005-02-24, at 03:57, Paul Norman wrote:
>> 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.

Hmm. I'm not sure how to interpret this. Is the requirement real and the
fact that the validator doesn't catch this a limitation of the validator
(and/or of the DTD representation of the specification), or is the
requirement in fact not a requirement in the normative sense, since it
isn't expressed in the DTD? Is the document valid or not?
Received on Thursday, 24 February 2005 03:29:30 UTC

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