Drag and drop does not allow custom mime types

By design Issue #8007622

Details

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

Found in build #
13.10586
Reports
Reported by 12 people

Sign in to watch or report this issue.

Steps to reproduce

Uhttp://codepen.io/anon/pen/ZOdwAZ](http://codepen.io/anon/pen/ZOdwAZ)[http://codepen.io/anon/pen/ZOdwAZ](http://codepen.io/anon/pen/ZOdwAZ)

 

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.

Attachments

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.

    • Are there any plans for fixing this issue in the near future? It still exists in Edge 16 (preview). All other modern browsers (Chrome, Firefox, Safari) already supports custom mime types in setData for some time now. It really makes implementing decent rich drag and drop and copy/paste support complicated.

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

    Sign in