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):

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Serial Inquiry</title>

  <form name="sn_query" action="somefile.php" method="POST">
    <table style="margin-left: auto; margin-right: auto">
        <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>



Received on Friday, 10 April 2009 07:23:16 UTC

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