W3C home > Mailing lists > Public > www-validator@w3.org > June 2006

Validation error with name attribute in a form element

From: Mike Rochow <miker@kestral.com.au>
Date: Fri, 2 Jun 2006 09:37:26 +1000
To: www-validator@w3.org
Message-ID: <OF4BB3DBE1.556B29DD-ONCA257180.008153DB-CA257180.0081E46A@kestral.com.au>




The first instance of the form element with a name attribute fails but all
subsequent instances with a name attribute pass. If you remove the name
from the first, then the second one fails.  It is really quite bizarre.

Thanks

Mike

Here is a short sample that only fails validation on the first form
element.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Validation Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta name="author" content="Mike"/>
<meta name="description" content="Validation Test"/>
<meta name="keywords" content="validation, test"/>
<link rel="stylesheet" title="sitestyles" href="style.css"
type="text/css"/>
</head>
<body>
<form name="form1" id="form1"
action="http://mercury.it.swin.edu.au/wd000000/05S2/feedback.php"
method="post">
</form>
<form name="form2" id="form2"
action="http://mercury.it.swin.edu.au/wd000000/05S2/feedback.php"
method="post">
</form>
</body>
</html>
Received on Friday, 2 June 2006 16:30:47 GMT

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