<?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>186094</bug_id>
          
          <creation_ts>2018-05-30 07:43:48 -0700</creation_ts>
          <short_desc>mouseout and mouseleave should not be dispatched on removed DOM node</short_desc>
          <delta_ts>2019-02-06 21:54:24 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>156971</dup_id>
          
          <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="Robert Flack">flackr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>dbates</cc>
    
    <cc>judeelliot2</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>1428423</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Flack">flackr</who>
    <bug_when>2018-05-30 07:43:48 -0700</bug_when>
    <thetext>Visit http://output.jsbin.com/sekaqit
Move the mouse over the gray hover me box
The mouseenter listener removes the gray box

According to https://www.w3.org/TR/uievents/#events-mouseevent-event-order:

If the event target (e.g. the target element) is removed from the DOM during the mouse events sequence, the remaining events of the sequence MUST NOT be fired on that element.

However, in Safari the mouseout and mouseleave events are fired. If you delay removing the DOM node, they are fired the next time the mouse is moved.

If my reading of the spec is correct, Safari should not be dispatching mouseout and mouseleave on the removed node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1428924</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-05-31 11:31:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/40693039&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497787</commentid>
    <comment_count>2</comment_count>
    <who name="DavidRushton">judeelliot2</who>
    <bug_when>2019-01-24 04:52:51 -0800</bug_when>
    <thetext>Most DOM events do bubble, however, there are a few exemptions. The mouse enter and mouse leave events don&apos;t bubble, however, mouseover and mouseout are the percolating partners. The concentration and obscure occasions don&apos;t bubble, however on standardizes focusing and focus out as foaming reciprocals. https://www.assignmentland.co.uk</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1498120</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-01-24 19:51:46 -0800</bug_when>
    <thetext>WebKit&apos;s behavior matches that of Gecko but not Chrome. We&apos;d have to figure out which one is more web compatible. The spec&apos;s text is probably irrelevant here (in that we should be changing the spec to whichever way that is more web compatible).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503337</commentid>
    <comment_count>4</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:19:13 -0800</bug_when>
    <thetext>Mass move bugs into the DOM component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503623</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-02-06 21:05:32 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 156971 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>