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

Calling getDirectory with undefined should return same dir #12

Open
Sebmaster opened this issue May 5, 2013 · 2 comments
Open

Calling getDirectory with undefined should return same dir #12

Sebmaster opened this issue May 5, 2013 · 2 comments

Comments

@Sebmaster
Copy link
Contributor

Not sure if that's intended as-is, but when calling getDirectory with undefined in chrome, chrome calls the callback with the same DirectoryEntry on which getDirectory was called on.

Calling getDirectory with undefined is probably always a bug, in order to be in line with chrome the shim should follow it's behaviour though, not sure which way is better.

@ebidel
Copy link
Owner

ebidel commented May 8, 2013

Agreed. It should do what the specs says. If the spec doesn't have answers, turn to Chrome's implementation :)

@Sebmaster
Copy link
Contributor Author

I couldn't find any exact specification in the W3C definition.

It says Otherwise, if no other error occurs, getDirectory must return a DirectoryEntrySync corresponding to path. though, not sure if undefined as argument is an error.

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

2 participants