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 20004 - Maybe DataTransfer should have a constructor, for use with synthetic events. If there are no use cases for synthetic drag events, maybe drop the DragEvent constructor instead?
Summary: Maybe DataTransfer should have a constructor, for use with synthetic events. ...
Status: RESOLVED FIXED
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: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-19 10:19 UTC by contributor
Modified: 2013-03-06 20:51 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-11-19 10:19:21 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html
Multipage: http://www.whatwg.org/C#datatransfer
Complete: http://www.whatwg.org/c#datatransfer

Comment:
Maybe DataTransfer should have a constructor, for use with synthetic events.
If there are no use cases for synthetic drag events, maybe drop the DragEvent
constructor instead?

Posted from: 81.231.170.159
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.4) Presto/2.12.388 Version/12.10
Comment 1 Ian 'Hixie' Hickson 2013-03-06 20:49:55 UTC
Creating a DataTransfer object is rather complicated because to make that object work the browser has to do magic in the background, deeply embedded in the way drag events fire.

The DragEvent constructor is there just for consistency with other interfaces. It's not useful, but I don't know if it's more confusing to remove it or keep it.

I've added a note to this effect.
Comment 2 contributor 2013-03-06 20:51:51 UTC
Checked in as WHATWG revision r7735.
Check-in comment: Point out that the constructor isn't really useful here.
http://html5.org/tools/web-apps-tracker?from=7734&to=7735