W3C home > Mailing lists > Public > public-bpwg@w3.org > September 2009

3.10 control labelling Re: New Version of BP Addendum

From: Charles McCathieNevile <chaals@opera.com>
Date: Wed, 16 Sep 2009 18:13:16 +0200
To: "Scheppe, Kai-Dietrich" <k.scheppe@telekom.de>, "Public MWBP" <public-bpwg@w3.org>
Message-ID: <op.u0cx0eo1wxe0ny@widsith.local>
On Wed, 16 Sep 2009 17:23:56 +0200, Scheppe, Kai-Dietrich  
<k.scheppe@telekom.de> wrote:

>  <<ED-mobileOK-pro10-tests-20090916.htm>>


the verification steps 2 and 3 are partially redundant. I suggest  
replacing them with:

Verify that the for attribute of the <label> element is present and  
corresponds to the id attribute of a form control,
   or that the label element contains the form control for which it is a  
label. (Note: doing both of these is also acceptable)

(In general I suggest converting the evaluation procedures to ordered  
lists, or otherwise clarifying that all steps should be undertaken).

Also, I would split the Examples section into two, as follows:

A label which requests a person's name but is associated with a birth date  
field presented as drop down boxes, fails step 4 [3 if you accept my  
collapsing of steps 2 and 3]

WRONG: <label>Your name <input type="date"/></label>

The for attribute and coresponding id are meaningless except that they  
must match, so the following HTML5 fragment is correct:

<label for="you">Your Name </label><input type="text" name="you"  
id="you"/> and
<label for="name">Birthday <input type="date" id="name"  



Charles McCathieNevile  Opera Software, Standards Group
     je parle français -- hablo español -- jeg lærer norsk
http://my.opera.com/chaals       Try Opera: http://www.opera.com
Received on Wednesday, 16 September 2009 16:14:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:54 UTC