W3C home > Mailing lists > Public > www-html@w3.org > October 2003

Re: LABEL behaviour

From: Chris Moschini <cmoschini@myrealbox.com>
Date: Thu, 09 Oct 2003 10:03:57 -0400
To: www-html@w3.org
Message-ID: <1065708237.bbcf0760cmoschini@myrealbox.com>

You can accomplish this today with CSS if you wrap your input field with the label tag, rather than using the for attribute. Just apply a :hover style to the pair. Unfortunately, IE doesn't even support this syntax, so you lose most of the world audience today... but hopefully something will change soon.

But that's an issue of implementation; the spec as it now provides for both your desired functionality and the label tag just acting on its own, so the option is left with the author - that's good, IMO.


-----Original Message-----
From: Скорецкий Артём <a.skorecki@taom.ru>

So, IMHO <label> element should distribute mouseOver and mouseOut events 
to linked object (set by LABEL's "for" atribute to object's "id" value)).
--------------------------





-Chris "SoopahMan" Moschini
http://hiveminds.info/
http://soopahman.com/
Received on Thursday, 9 October 2003 10:04:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:58 GMT