<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>15696</bug_id>
          
          <creation_ts>2007-10-25 16:55:12 -0700</creation_ts>
          <short_desc>Safari and Firefox differ in event handling behavior when placing &lt;div&gt; elements inside &lt;button&gt; elements</short_desc>
          <delta_ts>2024-10-13 06:00:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=89041</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Decker">kdecker</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59475</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Decker">kdecker</who>
    <bug_when>2007-10-25 16:55:12 -0700</bug_when>
    <thetext>Safari and Firefox differ in event handling behavior when placing &lt;div&gt; elements inside &lt;button&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59476</commentid>
    <comment_count>1</comment_count>
      <attachid>16868</attachid>
    <who name="Kevin Decker">kdecker</who>
    <bug_when>2007-10-25 16:55:39 -0700</bug_when>
    <thetext>Created attachment 16868
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120519</commentid>
    <comment_count>2</comment_count>
    <who name="Gabriel Humeniuc">humeniuc</who>
    <bug_when>2009-05-09 10:22:51 -0700</bug_when>
    <thetext>The comportament of Firefox is similar in Internet Explorer 6, and Opera 9.63 whitch I presume it is correct one.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>746588</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-10-19 13:14:55 -0700</bug_when>
    <thetext>See also: bug 89041, bug 99712.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889561</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-07 15:15:03 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 15.6 on macOS 12.5 an it gives &lt;div&gt; and &lt;button&gt; events while Firefox Nightly 105 only does &lt;button&gt; 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!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889715</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-08 11:16:55 -0700</bug_when>
    <thetext>&lt;rdar://problem/98330762&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067578</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-10-13 06:00:21 -0700</bug_when>
    <thetext>I just retested it after quite a while.

*** Safari 18.1 Beta ***

Clicked - dialog &apos;button&apos;

*** Chrome Canary 131 ***

Clicked - dialog &apos;button&apos;

*** Firefox Nightly 133 ***

Clicked - dialog &apos;button&apos;

___

It seems that now all browsers are aligned and have same behavior. Something might be changed during last testing with Safari 15.6 and now.

I am marking this as &apos;Configuration Changed&apos;, please reopen, if it is still reproducing or something tested wrong.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16868</attachid>
            <date>2007-10-25 16:55:39 -0700</date>
            <delta_ts>2007-10-25 16:55:39 -0700</delta_ts>
            <desc>test case</desc>
            <filename>button.html</filename>
            <type>text/html</type>
            <size>123</size>
            <attacher name="Kevin Decker">kdecker</attacher>
            
              <data encoding="base64">Cgo8YnV0dG9uIG9uY2xpY2s9ImFsZXJ0KCdidXR0b24nKTsiPkNsaWNrIG1lCjxkaXYgc3R5bGU9
ImJvcmRlcjo0cHggc29saWQgcmVkOyIgb25jbGljaz0iYWxlcnQoJ2RpdicpOyI+CjwvYnV0dG9u
Pgo8L2Rpdj4K
</data>

          </attachment>
      

    </bug>

</bugzilla>