W3C home > Mailing lists > Public > www-validator@w3.org > May 2003

validator bug

From: Jeff Holt <jeff.holt@hotsos.com>
Date: Thu, 22 May 2003 14:14:34 -0500
To: <www-validator@w3.org>
Message-ID: <008501c32096$64cbd8d0$6a01a8c0@jlhlap02>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:34 UTC