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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13524</bug_id>
          
          <creation_ts>2011-08-02 18:43:38 +0000</creation_ts>
          <short_desc>relatedTarget shouldn&apos;t be null for dragleave event(as mouseout)</short_desc>
          <delta_ts>2014-01-14 00:43:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-dragevent-interface</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>andrew</cc>
    
    <cc>cooper</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>52001</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-08-02 18:43:38 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html
Multipage: http://www.whatwg.org/C#the-dragevent-interface
Complete: http://www.whatwg.org/c#the-dragevent-interface

Comment:
relatedTarget shouldn&apos;t be null for dragleave event(as mouseout)

Posted from: 188.17.104.28
User agent: Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.9.168 Version/11.50</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52762</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:04:04 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54665</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-11 02:58:38 +0000</bug_when>
    <thetext>Do you have a test case demonstrating this? What should it be?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57034</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Cooper">cooper</who>
    <bug_when>2011-09-20 15:18:51 +0000</bug_when>
    <thetext>Bug triage sub-team is tracking this because of drag and drop, doesn&apos;t yet have an opinion one way or the other on the issue raised.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57454</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-27 22:24:36 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: It&apos;s null in WebKit, at least (I happened to test that one because it&apos;s easy to set breakpoints in WebKit). If it&apos;s not null in another browser, please attach a test case demonstrating it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97821</commentid>
    <comment_count>5</comment_count>
    <who name="Andrew R">andrew</who>
    <bug_when>2013-12-19 22:49:28 +0000</bug_when>
    <thetext>Open bug in webkit: https://bugs.webkit.org/show_bug.cgi?id=66547

Similar, fixed bug in mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=458613

Test case: http://jsfiddle.net/3yWqy/1/
(If I need to submit an actual HTML file to be legit, let me know)

In Firefox 26.0, relatedTarget on a dragleave is the DOM element being entered (the element which subsequently triggers a dragenter). Similarly, for dragenter it&apos;s the DOM element being left.  Essentially, dragleave and dragenter are treated as mirror events, as they should be -- dragleave.target = dragenter.relatedTarget and dragleave.relatedTarget = dragenter.target.

This makes much more sense than setting it to null, and is much more useful.

Can we reopen this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98272</commentid>
    <comment_count>6</comment_count>
    <who name="Andrew R">andrew</who>
    <bug_when>2014-01-11 01:58:43 +0000</bug_when>
    <thetext>Reopening pursuant to:

&gt; If you have additional information and would like the editor to reconsider, please reopen this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98388</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-14 00:43:18 +0000</bug_when>
    <thetext>Ok, I&apos;ve tried to spec this. Please don&apos;t hesitate to reopen this bug if the edit isn&apos;t complete enough, or if it doesn&apos;t match Firefox precisely (assuming what Firefox does is better).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98389</commentid>
    <comment_count>8</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-01-14 00:43:26 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8396.
Check-in comment: Make some dragleave and dragenter events have a relatedTarget.
http://html5.org/tools/web-apps-tracker?from=8395&amp;to=8396</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>