Closed
Bug 302686
Opened 19 years ago
Closed 19 years ago
label click event bubbles twice and input click event fails to bubble
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
DUPLICATE
of bug 146066
People
(Reporter: bfults, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 When clicking on a LABEL element, its "click" event bubbles up (as it should), but the auxiliary behavior of a LABEL click is the dispatch of a click event on its associated form control (e.g. an INPUT element). Gecko improperly sends two clicks from the LABEL element (found by checking the event's .target property) instead of one from the LABEL and one from the associated form control. Reproducible: Always Steps to Reproduce: View the URL for this bug [ http://b-cage.net/tmp/label-bubble.html ] and click on the label. Observe the events that are fired (specifically that two label click events bubble to the fieldset). Do the same in IE and you'll see that first the label's click event bubbles to the fieldset, but then a click from the *input* bubbles to the fieldset, which is correct behavior.
Comment 1•19 years ago
|
||
*** This bug has been marked as a duplicate of 146066 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•