validator bug

The validator incorrectly claims that the following HTML is valid.
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>kptrain-20030406160324-24.zip - Hotsos Profiler</title>
</head>
<body>
<a name="1">here</a>
<a name="1">there</a>
</body>
</html>
 
If I use the ID attribute instead of the NAME attribute, then the
validator correctly identifies the duplicate anchor definitions. The
following HTML is invalid and the validator says so.
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>kptrain-20030406160324-24.zip - Hotsos Profiler</title>
</head>
<body>
<a id="1">here</a>
<a id="1">there</a>
</body>
</html>
 
Jeff Holt
Hotsos Enterprises, Ltd.
http://www.hotsos.com
Upcoming events at http://www.hotsos.com/events/index.html
 

Received on Thursday, 22 May 2003 15:19:45 UTC