3.10 control labelling Re: New Version of BP Addendum

On Wed, 16 Sep 2009 17:23:56 +0200, Scheppe, Kai-Dietrich  
<k.scheppe@telekom.de> wrote:

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

Hi,

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"  
name="name"/></label>

cheers

Chaals


-- 
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