Closed
Bug 812389
Opened 12 years ago
Closed 11 years ago
Shift-clicking a label for a checkbox doesn't fire the checkbox's Click event.
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 559506
People
(Reporter: stkrahl2, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
157 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4 Steps to reproduce: Shift-click a label that either surrounds a checkbox or has it's 'for' attribute set to a checkbox. Actual results: The label text is highlighted, but the label isn't toggled, and no onclick event is fired for the label. Expected results: The label should have been clicked.
Reporter | ||
Comment 1•12 years ago
|
||
Attachment #682281 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #682284 -
Attachment mime type: text/plain → text/html
Reporter | ||
Comment 2•12 years ago
|
||
I really should have proofread my initial post much more thoroughly. Steps to reproduce: Shift-click a label that either surrounds a checkbox or has its 'for' attribute set to a checkbox. Actual results: The label text is highlighted, but the checkbox isn't toggled, and no onclick event is fired for the checkbox. Expected results: The checkbox should have been clicked.
Updated•11 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Comment 4•11 years ago
|
||
still exists in firefox 25 (windows 7)
Still occurs with current version (FF 62.0.3) tested with Win10 x64 You can test it with the MDN example: https://developer.mozilla.org/de/docs/Web/HTML/Element/label click label with alt or shift or ctrl. Checkbox event not fired On other browsers (Chrome, Safari) it will works. The spec says: When a <label> is clicked or tapped and it is associated with a form control, the resulting click event is also raised for the associated control.
You need to log in
before you can comment on or make changes to this bug.
Description
•