[whatwg] Label question
Ian Hickson
ian at hixie.ch
Wed Jun 30 05:22:16 PDT 2004
On Mon, 28 Jun 2004, martijnw wrote:
>
> Not sure if this is an issue in the Web Forms 2.0 Working Draft, but is
> something like this allowed?
>
> <label for="dat" id="dit">dat</label><label for="dit" id="dat">dit</label>
As I think someone else pointed out, this is already disallowed by HTML4.
WF2 says:
# For labels pointing (via for) to elements that are not form controls
# The attribute must be ignored. It will appear in the DOM (including as
# the value of htmlFor) but the control DOM attribute must return null and
# activating the label must not send focus to the associated element.
- http://whatwg.org/specs/web-forms/current-work/#handling
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list