Re: NAME attribute of INPUT element should be required?

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