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

Should .webkitEntries be populated for dialog selections? #15

Open
pipcet opened this issue Dec 28, 2016 · 3 comments
Open

Should .webkitEntries be populated for dialog selections? #15

pipcet opened this issue Dec 28, 2016 · 3 comments

Comments

@pipcet
Copy link

pipcet commented Dec 28, 2016

Right now, Firefox populates an input element's .webkitEntries only when files are dragged-and-dropped onto the element, not when the file dialog is clicked and a file manually selected: https://bugzilla.mozilla.org/show_bug.cgi?id=1326031

Chrome behavior is similar, but after a file has been dragged-and-dropped, the selection can be changed in the dialog and the change will be reflected in .webkitEntries.

Both browsers' behavior appears to me to be in violation of the spec, and to present an accessibility issue as drag-and-drop is often cumbersome to use. Am I misreading this?

@Robinson-George
Copy link

Robinson-George commented Oct 15, 2019

Yes, definitely.

It is ridiculous that a directory tree can be selected by a Drag&Drop operation but not by the File Picker Dialog.

See what kind of problems this is causing:
https://stackoverflow.com/questions/58384785/obtaining-a-directory-tree-from-the-input-type-file-button

@inexorabletash inexorabletash changed the title Should .webkitEntries be pppulated for dialog selections? Should .webkitEntries be populated for dialog selections? Oct 15, 2019
@inexorabletash
Copy link
Collaborator

inexorabletash commented Oct 15, 2019

Both browsers' behavior appears to me to be in violation of the spec

Well, this particular spec is trying to document the behavior of browsers, not set a direction. But the spec doesn't make it clear that browsers are weird here...

It's called out as: https://wicg.github.io/entries-api/#issue-4cc238bb

and to present an accessibility issue as drag-and-drop is often cumbersome to use.

Yep - it's not good. Browsers should do better here...

See what kind of problems this is causing:

😢

@omgoshjosh
Copy link

Dang almost 5 years no resolution??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants