Drag and drop example not working, Firefox 133.0.3 #37458
Labels
Content:WebAPI
Web API docs
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API
What specific section or headline is this issue about?
"Examples", specifically Dragging and dropping files
What information was incorrect, unhelpful, or incomplete?
The two examples which actually appear to be identical
Dragging and dropping files (Firefox only): https://jsfiddle.net/9C2EF/
Dragging and dropping files (All browsers): https://jsbin.com/hiqasek/
These both do not work in the latest version of Firefox on Ubuntu. I drag and drop a file, and the files array has length 0. So I get this:
In Chromium (hosted on localhost) the example has a file but the file size is 0!
In Chromium on an incognito tab at the actual website https://jsbin.com/hiqasek/ I get
What did you expect to see?
On both browsers the example should accept a file dragged onto the "DROP FILES HERE" div. The file should be readable. Otherwise, if this is an issue with browsers, I think the documentation should be updated to explain the limitations of this function.
(Also, second minor issue: there is a broken Interoperability anchor link in the blue Note section.)
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
This is using Ubuntu snap versions of Firefox and Chromium, updated to the latest version.
MDN metadata
Page report details
en-us/web/api/html_drag_and_drop_api
The text was updated successfully, but these errors were encountered: