- From: Jonatan Lander <jonatan@wineasy.se>
- Date: Thu, 24 Feb 2005 02:35:43 +0100
- To: 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? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>foo</title> </head> <body> <form action="foo"> <div> <input> <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"> </div> </form> </body> </html>
Received on Thursday, 24 February 2005 02:34:04 UTC