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)

16 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 559506

People

(Reporter: stkrahl2, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

Attached file testcase (obsolete) —
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.
Attached file testcase
Attachment #682281 - Attachment is obsolete: true
Attachment #682284 - Attachment mime type: text/plain → text/html
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.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
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.

Attachment

General

Created:
Updated:
Size: