Drag and drop does not allow custom mime types

By design Issue #8007622


Chris M.
Jun 27, 2016
This issue is public.
Found in
  • Microsoft Edge
Standard affected
HTML: 5. User interaction

Found in build #
Reported by 9 people

Sign in to watch or report this issue.

Steps to reproduce



Slightly DIfferent Versihttp://jsbin.com/cakemezufi/1/edit?html,output](http://jsbin.com/cakemezufi/1/edit?html%2coutput) [http://jsbin.com/cakemezufi/1/edit?html,output](http://jsbin.com/cakemezufi/1/edit?html%2coutput) 



  1. Make an element draggable
  2. In the element’s dragstart listener, call event.dataTransfer.setData('text/x-custom', 'custom-text');
  3. The error “SCRIPT1168: Element not found.” is logged to the console, and the data transfer is not populated.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

    • We noticed that this does repro, but, it also does the same thing in Chrome - just with a different error message.  Could you provide some sample code that demonstrates this problem for us, please? We would love to investigate further but need an exact example.

      All the best,
      The MS Edge Team

    • from https://html.spec.whatwg.org/multipage/interaction.html#the-drag-data-item-type-string :

      “The API does not enforce the use of MIME types; other values can be used as well.”

      also, language similar to this exists in all versions of the spec going back at least to 2010.

      IE is clearly bugged here.

      here’s a repro: http://codepen.io/anon/pen/ZOdwAZ, as if one were necessary.

      dragging the div should result in an alert popup saying 'bar’. this works in Chrome and Firefox.

    • Microsoft Edge Team

      Changed Assigned To to “Travis L.”

      Changed Assigned To to “Sermet I.”

      Changed Steps to Reproduce

      Changed Assigned To from “Sermet I.” to “Bruce L.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Bruce L.” to “Ted D.”

      Changed Status from “Confirmed” to “By design”

    • Thank you for the feedback on Edge. This is a feature request that we are tracking with another internal deliverable. We hope to have this feature ready to go in a future release.

      All the best,
      The MS Edge Team

    • Hello Edge team,

      In my opinion, this bug should be fixed as soon as possible. Here, at Kapsch trafficom, we’re developing non-trivial drag and drop solutions in our apps and this is a basic drag and drop feature for us.

      Please, add custom draggable mime types in your drag and drop system.

    You need to sign in to your Microsoft account to add a comment.

    Sign in