WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 172526
67025
HTML5 Drag and Drop does not allow custom types
https://bugs.webkit.org/show_bug.cgi?id=67025
Summary
HTML5 Drag and Drop does not allow custom types
pimvdb
Reported
2011-08-26 02:11:33 PDT
e.dataTransfer.setData("text/plain", "test"); allows one to fetch the data using e.dataTransfer.getData("text/plain"); --- On the other hand, using a custom type like e.dataTransfer.setData("custom", "test"); does *not* allow one to fetch the data using e.dataTransfer.getData("custom"); --- This is not as it should according to the specs:
http://dev.w3.org/html5/spec/Overview.html#the-drag-data-item-type-string
"The API does not enforce the use of MIME types; other values can be used as well."
Attachments
Test case
(1.60 KB, text/html)
2011-08-26 02:13 PDT
,
pimvdb
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
pimvdb
Comment 1
2011-08-26 02:13:19 PDT
Created
attachment 105334
[details]
Test case
pimvdb
Comment 2
2011-08-26 02:14:54 PDT
Comment on
attachment 105334
[details]
Test case Drag first 'drag me' into first 'drop me' and watch the console log. It says 'test' which is correct. Now drag the second 'drag me' into the second 'drop me' and watch the console log. It says undefined which is not correct.
Nathan Vander Wilt
Comment 3
2012-02-15 15:58:13 PST
This may be just a Chrome-specific issue:
http://code.google.com/p/chromium/issues/detail?id=93514
Custom data types are working fine for me in Safari, but rather unsupported in Chrome.
Ryosuke Niwa
Comment 4
2017-09-27 21:45:25 PDT
The feature has been implemented in
https://trac.webkit.org/changeset/222595
. *** This bug has been marked as a duplicate of
bug 172526
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug