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."
Created attachment 105334 [details] Test case
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.
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.
The feature has been implemented in https://trac.webkit.org/changeset/222595. *** This bug has been marked as a duplicate of bug 172526 ***