Closed Bug 987627 Opened 11 years ago Closed 11 years ago

Multiple Form Fields in a Label element are unselectable

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 213519

People

(Reporter: graham, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36 Steps to reproduce: If a Label element contains multiple form fields, then clicking in any of the form fields will result in the focus moving to the first one. Example HTML snippet: <label> Please enter your date of birth: <input type="text" name="day" /> <input type="text" name="month" /> <input type="text" name="year" /> </label> Actual results: In the above, clicking in any of the three input boxes will put the focus into the "day" input box, making it impossible to click into the "month" or "year" boxes. Expected results: Whilst the HTML Specification does say that the Label may only contain one control element, and thus Firefox is correct to the letter of the specification, it would be more useful if it allowed focus to go to the control element that was clicked on in the above case.There are many cases when a single label control is desirable for more than one input element and the way that Firefox behaves in this makes the result less useful for the end user.
Reproduced this on Mac OS X 10.9.2 and Windows 7 64bit using latest Nightly.
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
OS: Mac OS X → All
Product: Firefox → Core
Hardware: x86 → All
Version: 26 Branch → Trunk
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.