Closed
Bug 1201106
Opened 9 years ago
Closed 9 years ago
When the 'directory' attribute is set on <input type=file>, .files must be set to null
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(1 file)
774 bytes,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
When the 'directory' attribute is set on <input type=file>, .files must be set to null. See the text "If this attribute is set, input.files MUST return null.": https://wicg.github.io/directory-upload/proposal.html#attributes-1 For the rational, see: https://github.com/WICG/directory-upload/issues/8
Assignee | ||
Comment 1•9 years ago
|
||
Assignee: nobody → jwatt
Attachment #8659227 -
Flags: review?(amarchesini)
Comment 2•9 years ago
|
||
Comment on attachment 8659227 [details] [diff] [review] patch Review of attachment 8659227 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/html/HTMLInputElement.cpp @@ +2480,5 @@ > if (mType != NS_FORM_INPUT_FILE) { > return nullptr; > } > > + if (HasAttr(kNameSpaceID_None, nsGkAtoms::directory)) { Don't we want to check the value as well?
Attachment #8659227 -
Flags: review?(amarchesini) → review+
Assignee | ||
Comment 3•9 years ago
|
||
No, it's a boolean attribute.
Comment 5•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/86014d39a1c5
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•