label element for attribute not checked for pointing to form control

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In the HTML4 specification, for@ is required to contain the @id of a 
form control, not just any @id in the document:

	When present, the value of this attribute must be the same as the 
	value of the id attribute of some other control in the same 
	document.

http://www.w3.org/TR/html4/interact/forms.html#adef-for

However, the following validates even though the @for points to a div 
element.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>test</title>

<div>

<label for="foo">bar</label>

<div id="foo">baz</div>

</div>

- -- 
Liam Morland <Liam@Morland.ca>        Canadian Scout Camps Directory
http://Liam.Morland.ca/                 http://ScoutDocs.ca/Camps/

PGP Public Key: http://liam.morland.ca/pgp-public-key.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk2/ICQACgkQgtUMElSxnjeodwCeJqz4Voz+PafAjZV6Z2DB6lUA
b/AAn1Tva9NWUYM3MDJwKWxaEE4x1sPp
=hnBZ
-----END PGP SIGNATURE-----

Received on Monday, 2 May 2011 21:21:04 UTC