{"action":"created","issue":{"url":"https://api.github.com/repos/WICG/directory-upload/issues/31","repository_url":"https://api.github.com/repos/WICG/directory-upload","labels_url":"https://api.github.com/repos/WICG/directory-upload/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/WICG/directory-upload/issues/31/comments","events_url":"https://api.github.com/repos/WICG/directory-upload/issues/31/events","html_url":"https://github.com/WICG/directory-upload/issues/31","id":142686302,"number":31,"title":"HTMLInputElement.directory should be a Directory attribute and not a boolean","user":{"login":"bakulf","id":515957,"avatar_url":"https://avatars.githubusercontent.com/u/515957?v=3","gravatar_id":"","url":"https://api.github.com/users/bakulf","html_url":"https://github.com/bakulf","followers_url":"https://api.github.com/users/bakulf/followers","following_url":"https://api.github.com/users/bakulf/following{/other_user}","gists_url":"https://api.github.com/users/bakulf/gists{/gist_id}","starred_url":"https://api.github.com/users/bakulf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakulf/subscriptions","organizations_url":"https://api.github.com/users/bakulf/orgs","repos_url":"https://api.github.com/users/bakulf/repos","events_url":"https://api.github.com/users/bakulf/events{/privacy}","received_events_url":"https://api.github.com/users/bakulf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-22T15:30:18Z","updated_at":"2016-03-22T23:55:44Z","closed_at":null,"body":"It seems confusing that HTMLInputElement.files return the array of selected files, but HTMLInputElement.directory just true/false. I think it would be nice to have it as:\r\n\r\n    readonly attribute Directory? directory;\r\n\r\nIn case the user selects 1 directory, this will be a Directory object."},"comment":{"url":"https://api.github.com/repos/WICG/directory-upload/issues/comments/200084386","html_url":"https://github.com/WICG/directory-upload/issues/31#issuecomment-200084386","issue_url":"https://api.github.com/repos/WICG/directory-upload/issues/31","id":200084386,"user":{"login":"jwatt","id":325860,"avatar_url":"https://avatars.githubusercontent.com/u/325860?v=3","gravatar_id":"","url":"https://api.github.com/users/jwatt","html_url":"https://github.com/jwatt","followers_url":"https://api.github.com/users/jwatt/followers","following_url":"https://api.github.com/users/jwatt/following{/other_user}","gists_url":"https://api.github.com/users/jwatt/gists{/gist_id}","starred_url":"https://api.github.com/users/jwatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwatt/subscriptions","organizations_url":"https://api.github.com/users/jwatt/orgs","repos_url":"https://api.github.com/users/jwatt/repos","events_url":"https://api.github.com/users/jwatt/events{/privacy}","received_events_url":"https://api.github.com/users/jwatt/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T23:55:44Z","updated_at":"2016-03-22T23:55:44Z","body":"Indeed. The \"directory\" content attribute is a boolean content attribute, and as is normal for such attributes they are mapped into IDL as boolean attributes. The purpose of HTMLInputElement.directory is to tell script if this input element is a directory picker or not. It's purpose is not to give script access to the picked items.\r\n\r\nIs your proposal that the IDL attribute should be true/false depending on whether the \"directory\" content attribute is set, except if there's actually directories picked? The complication is that there could be a mixture of File and Directory objects, not just a single Directory object. I think this is a bit too weird."}}