Closed Bug 684201 Opened 15 years ago Closed 13 years ago

XUL label doesn't behave as expected when it's a label for a radio or checkbox

Categories

(Toolkit :: UI Widgets, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: darktrojan, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

Attached file demo test case —
A click on a XUL <label> only focuses the element specified in the control attribute, it doesn't change the value of checkboxes or radios. This is inconsistent with HTML <label> and with using the label attribute.
Attached patch patch (obsolete) — — Splinter Review
Attached patch patch and tests — — Splinter Review
Attachment #557801 - Attachment is obsolete: true
Attachment #558452 - Flags: review?(neil)
(From update of attachment 558452 [details] [diff] [review]) Why stop at checkbox and radio? Why not, say, the info box expander in the Places library? (In reply to Geoff Lankow from comment #0) > This is inconsistent with HTML <label> Which is only there for consistency with IE; HTML itself doesn't require it, although HTML5 makes a strong case for it. > and with using the label attribute. I don't think the label element is supposed to be consistent with the label attribute.
Assignee: geoff → nobody
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Attachment #558452 - Flags: review?(neil)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: