summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLInputElement.idl
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-10-03 23:39:53 -0600
committerAndreas Kling <kling@serenityos.org>2022-10-04 22:05:14 +0200
commit636602a54e55945f7394805975a69dc40934331c (patch)
tree7c44e0bcf68c84175d18682cb722fbe4c56b13f7 /Userland/Libraries/LibWeb/HTML/HTMLInputElement.idl
parentffab9fb44ed0cff0d895d0e21e52e53d85f742e5 (diff)
downloadserenity-636602a54e55945f7394805975a69dc40934331c.zip
LibWeb: Implement <input type=file> behavior
This includes punting on the actual file picker implementation all the way out to the PageClient. It's likely that some of the real details should be implemented somewhere closer, like the BrowsingContext or the Page, but we'll get there. For now, this allows https://copy.sh/v86 to load the emulation of the preselected images all the way until it hits a call to URL.createObjectURL.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLInputElement.idl')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLInputElement.idl4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.idl
index 19c814c8dc..1c4dba1046 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.idl
+++ b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.idl
@@ -1,9 +1,11 @@
#import <HTML/HTMLElement.idl>
#import <HTML/HTMLFormElement.idl>
+#import <FileAPI/FileList.idl>
interface HTMLInputElement : HTMLElement {
readonly attribute HTMLFormElement? form;
+ attribute FileList? files;
[Reflect] attribute DOMString accept;
[Reflect] attribute DOMString alt;
@@ -34,4 +36,6 @@ interface HTMLInputElement : HTMLElement {
[Reflect] attribute DOMString align;
[Reflect=usemap] attribute DOMString useMap;
+ undefined showPicker();
+
};