Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.DataTransfer.files - incomplete information on safari: items not filled on drag event #24898

Open
mattcohen24 opened this issue Oct 31, 2024 · 2 comments
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@mattcohen24
Copy link

mattcohen24 commented Oct 31, 2024

What type of issue is this?

Missing compatibility information

What information was incorrect, unhelpful, or incomplete?

Safari has a caveat that other browsers don't encounter; safari obscures the files, so if developers are using items.length to verify the user is dragging files, that will not work on safari, but does on other browsers. safari only reveals that the user is dragging files through the dataTransfer.types property.

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

items.length having non-zero length when user is dragging files.

Did you test this? If so, how?

trigger drag event with files on chrome and safari, items has values on chrome, items has no values on safari.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items

MDN metadata

MDN page report details
  • Query: api.DataTransfer.files
  • Report started: 2024-10-31T17:44:13.331Z
Copy link

This issue was automatically closed because the title was left as the default, and a summary was not added.

If this is not a spam issue, please replace the <SUMMARIZE THE PROBLEM> part of the title with a short summary of the reported issue, and then post a follow-up comment. A maintainer will review your issue and reopen it if needed.

@github-actions github-actions bot added the invalid 🚫 Invalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry! label Oct 31, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 31, 2024
@mattcohen24 mattcohen24 changed the title api.DataTransfer.files - <SUMMARIZE THE PROBLEM> api.DataTransfer.files - <incomplete information on safari: items not filled on drag event> Oct 31, 2024
@mattcohen24
Copy link
Author

updated title

@mattcohen24 mattcohen24 changed the title api.DataTransfer.files - <incomplete information on safari: items not filled on drag event> api.DataTransfer.files - incomplete information on safari: items not filled on drag event Oct 31, 2024
@queengooborg queengooborg added data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API and removed invalid 🚫 Invalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry! labels Oct 31, 2024
@queengooborg queengooborg reopened this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

2 participants