directory-upload icon indicating copy to clipboard operation
directory-upload copied to clipboard

directory content attribute not defined

Open annevk opened this issue 9 years ago • 8 comments

I'm assuming from the examples you want <input type=file directory> to do something.

annevk avatar Sep 22 '15 15:09 annevk

It should work in the same way that the multiple attribute works. As long as it's set, it will be active.

aliams avatar Sep 23 '15 20:09 aliams

Someone should probably spec that then.

domenic avatar Sep 23 '15 23:09 domenic

It is mentioned in Section 2.2.1 under the directory attribute definition. Do you feel that it requires further clarification?

aliams avatar Sep 24 '15 00:09 aliams

That specifies the directory IDL attribute, not the directory content attribute.

domenic avatar Sep 24 '15 00:09 domenic

I'd suggest looking at how attributes (of both kinds) are defined for inputs in the actual HTML spec, and phrasing your spec as a patch to it (see also #15). E.g.:

domenic avatar Sep 24 '15 00:09 domenic

You also can't do things like "If this attribute is set, input.files must return null." You have to write a proper patch for the definition of the files IDL attribute.

domenic avatar Sep 24 '15 00:09 domenic

@annevk: Do you think the HTMLInputElement should have a Directory Upload state alongside a File Upload state? It makes managing spec'd activation behavior easier than explaining everything within the File Upload activation steps. If you approve, that's what'll go into my PR for HTML.

arunranga avatar Nov 25 '15 21:11 arunranga

I don't think we can do that since the state is closely tied to the type. We'll need language similar to what we have for the multiple attribute I think.

And some language about the control representing selected files and directories, or some such.

annevk avatar Nov 26 '15 08:11 annevk