Re: [directory-upload] HTMLInputElement.directory should be a Directory attribute and not a boolean (#31)

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.

Is 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.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/directory-upload/issues/31#issuecomment-200084386

Received on Tuesday, 22 March 2016 23:56:13 UTC