This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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'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
mass-moved component to LC1
Do you have a test case demonstrating this? What should it be?
Bug triage sub-team is tracking this because of drag and drop, doesn't yet have an opinion one way or the other on the issue raised.
EDITOR'S RESPONSE: This is an Editor'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's null in WebKit, at least (I happened to test that one because it's easy to set breakpoints in WebKit). If it's not null in another browser, please attach a test case demonstrating it.
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'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?
Reopening pursuant to: > If you have additional information and would like the editor to reconsider, please reopen this bug.
Ok, I've tried to spec this. Please don't hesitate to reopen this bug if the edit isn't complete enough, or if it doesn't match Firefox precisely (assuming what Firefox does is better).
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&to=8396