W3C home > Mailing lists > Public > www-validator@w3.org > April 2009

name attribute in form tag does not error in HTML 4.01 Strict

From: SCHLAK Robert <Robert.Schlak@alcatel-lucent.com>
Date: Thu, 9 Apr 2009 16:08:55 -0500
Message-ID: <EDC73F505B8F3D46B164A6767DA4E728024AC6AC@USDALSMBS03.ad3.ad.alcatel.com>
To: <www-validator@w3.org>
I believe the validation for 'HTML 4.01 Strict' is missing a deprecated
convention. From what I have read the 'name' attribute of the 'form' tag
is deprecated for HTML 4.01 Strict, but allowed in Transitional. I do
not get an error when using the name attribute.

This should raise an error (in my opinion):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Serial Inquiry</title>
 </head>

 <body>
  <form name="sn_query" action="somefile.php" method="POST">
    <table style="margin-left: auto; margin-right: auto">
      <tr>
        <td><b>Enter serial number</b></td>
        <td><input type="text" name="serial"
onKeyDown="if(event.keyCode==13 || event.keyCode==9) {
CheckFormData(this.form); }"></td>
      </tr>
    </table>

   </form>
  </body>
</html>

Thanks,

RS
Received on Friday, 10 April 2009 07:23:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:34 GMT