Bug 15696 - Safari and Firefox differ in event handling behavior when placing <div> elements inside <button> elements
Summary: Safari and Firefox differ in event handling behavior when placing <div> eleme...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-10-25 16:55 PDT by Kevin Decker
Modified: 2022-08-19 22:59 PDT (History)
6 users (show)

See Also:


Attachments
test case (123 bytes, text/html)
2007-10-25 16:55 PDT, Kevin Decker
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Decker 2007-10-25 16:55:12 PDT
Safari and Firefox differ in event handling behavior when placing <div> elements inside <button> elements. 

* STEPS TO REPRODUCE
1. Open attached test case and click within the red block.

* RESULTS
In Firefox, the button gets the event. In Safari both the div *and* button receive events.
Comment 1 Kevin Decker 2007-10-25 16:55:39 PDT
Created attachment 16868 [details]
test case
Comment 2 Gabriel Humeniuc 2009-05-09 10:22:51 PDT
The comportament of Firefox is similar in Internet Explorer 6, and Opera 9.63 whitch I presume it is correct one.

Comment 3 Alexey Proskuryakov 2012-10-19 13:14:55 PDT
See also: bug 89041, bug 99712.
Comment 4 Ahmad Saleem 2022-08-07 15:15:03 PDT
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 an it gives <div> and <button> events while Firefox Nightly 105 only does <button> event. While Chrome Canary 106 matches with Safari here.

I am not sure on web-spec so I would leave the team to decide whether it is something which needs to be aligned with Firefox or Firefox need to change the behavior. Thanks!
Comment 5 Radar WebKit Bug Importer 2022-08-08 11:16:55 PDT
<rdar://problem/98330762>