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

Undescriptive error message

From: Chris Sparrows <csparrows@clackamas.cc.or.us>
Date: Tue, 14 May 2002 15:00:40 -0400 (EDT)
Message-Id: <sce0fb8c.083@mailhost.clackamas.cc.or.us>
To: <www-validator@w3.org>
While validating a page recently I was presented with the following uninformative error message:

Error: X

By eliminating all other elements on the page I eventually found that the problem was that I had a <label> on a form that referenced a non-existent id attribute.

This error message should to be updated to: Label FOR attribute refers to non-existent ID, or something like that.

Thanks for your time.

Below is the html that triggered this error.
- begin html document -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html401/strict.dtd ">
<html>
<head>
<title>page</title>
</head>
<body>

<form method="post" action="/asp/sendmail.asp" enctype="multipart/form-data">
<label for="feedback">Feedback:</label>
<input type="text"></p>
<!--adding id="feedback" to the input tag fixes the error-->
</form>

</body>
</html>
- end html document -

______________________________
Chris Sparrows
College Publications,
Clackamas Community College
No Job Title: I just "do web stuff"
503-657-6958 x2502
http://www.clackamas.cc.or.us/
Received on Friday, 17 May 2002 02:50:30 GMT

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