This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28984 - The DragEventInit dataTransfer member is not useful
Summary: The DragEventInit dataTransfer member is not useful
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/#the-dra...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-22 15:07 UTC by contributor
Modified: 2015-09-01 13:27 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2015-07-22 15:07:13 UTC
Specification: https://html.spec.whatwg.org/
Multipage: https://html.spec.whatwg.org/multipage/#the-dragevent-interface
Complete: https://html.spec.whatwg.org/#the-dragevent-interface
Referrer: 

Comment:
The DragEventInit dataTransfer member is not useful

Posted from: 212.116.72.179
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2398.0 Safari/537.36 OPR/31.0.1876.0 (Edition developer)
Comment 1 Philip Jägenstedt 2015-07-22 15:09:27 UTC
This bug could also be phrased as "DataTransfer does not have a constructor"

The DragEvent constructor is strange because the only way to get a DataTransfer object is from some other event, and reusing that data doesn't seem useful.

If it could be useful to have this constructor, DataTransfer also needs a constructor, or it could be defined such that dataTransfer will always be null on script-created events.

Also discussed in https://github.com/w3c/clipboard-apis/issues/10
Comment 2 Philip Jägenstedt 2015-07-28 11:20:25 UTC
https://github.com/w3c/clipboard-apis/issues/10 was resolved by making the second argument to the constructor an EventInitDict. That could work here as well.
Comment 3 Anne 2015-09-01 13:27:13 UTC
https://github.com/whatwg/html/pull/71