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

NAME attribute of INPUT element should be required?

From: Jonatan Lander <jonatan@wineasy.se>
Date: Thu, 24 Feb 2005 02:35:43 +0100
Message-Id: <007ed74c99e13dea30445be1635115af@wineasy.se>
To: www-validator@w3.org

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?

	<meta http-equiv="content-type" content="text/html; 
     <form action="foo">
         <input type="text">
         <input type="password">
         <input type="checkbox">
         <input type="radio">
         <input type="submit">
         <input type="reset">
         <input type="file">
         <input type="hidden">
         <input type="image">
         <input type="button">
Received on Thursday, 24 February 2005 02:34:04 UTC

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