Ticket #133 (closed defect: fixed)

Opened 1 year ago

Last modified 2 months ago

DM2: label "for" attribute incorrect

Reported by: flack Assigned to: tarjei
Priority: major Milestone: 1.8 Thor
Component: MidCOM component Version: 2.8
Keywords: Cc:

Description

Currently, DM2 renders input fields like this:

<label for='name' id='name_label'>
		
        <span class="field_text">

                URL-Name (intern)</span><input size="40" class="shorttext" id="net_nehmer_static_name" name="name" type="text" value="index" />
	</label>

The attribute "for" in the label tag is IDREF in the W3C spec, and thus must point to an existing ID value. This would be "net_nehmer_static_name", but then it would have to look like this:

<label for='net_nehmer_static_name' id='name_label'>

BTW: This is not so much a standard compliance issue, but more a usability issue: When the for attribute is incorrect, clicking on the label to focus (or check/uncheck) the corresponding field doesn't work.

Change History

09/12/07 13:39:11 changed by bergie

  • status changed from new to closed.
  • resolution set to fixed.

(In [12170]) "for" attribute is not required for DM2 form labels since the input is inside the label element. closes #133

09/12/07 13:43:52 changed by bergie

(In [12171]) Backporting [12170]: "for" attribute is not required for DM2 form labels since the input is inside the label element. refs #133

09/30/08 15:03:54 changed by bergie

  • milestone set to 1.8 Thor.