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: 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)
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
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.
https://github.com/whatwg/html/pull/71