directory-upload
directory-upload copied to clipboard
directory content attribute not defined
I'm assuming from the examples you want <input type=file directory>
to do something.
It should work in the same way that the multiple
attribute works. As long as it's set, it will be active.
Someone should probably spec that then.
It is mentioned in Section 2.2.1 under the directory attribute definition. Do you feel that it requires further clarification?
That specifies the directory IDL attribute, not the directory content attribute.
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.:
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.
@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.
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.