mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +00:00
LibWeb: Add an empty DataTransfer IDL implementation
This does not implement any of the IDL methods, but GitHub requires the interface exists to upload files via an <input type="file"> element. Their JS handles uploads via this element and via drag-and-drop in one function, and check if the uploaded file is `instanceof DataTransfer` to decide how to handle it.
This commit is contained in:
parent
7681772b9f
commit
c2ef506b4a
7 changed files with 84 additions and 0 deletions
|
@ -24,6 +24,7 @@ source_set("HTML") {
|
|||
"CloseEvent.cpp",
|
||||
"DOMParser.cpp",
|
||||
"DOMStringMap.cpp",
|
||||
"DataTransfer.cpp",
|
||||
"Dates.cpp",
|
||||
"DecodedImageData.cpp",
|
||||
"DocumentState.cpp",
|
||||
|
|
|
@ -113,6 +113,7 @@ standard_idl_files = [
|
|||
"//Userland/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.idl",
|
||||
"//Userland/Libraries/LibWeb/HTML/DOMParser.idl",
|
||||
"//Userland/Libraries/LibWeb/HTML/DOMStringMap.idl",
|
||||
"//Userland/Libraries/LibWeb/HTML/DataTransfer.idl",
|
||||
"//Userland/Libraries/LibWeb/HTML/ErrorEvent.idl",
|
||||
"//Userland/Libraries/LibWeb/HTML/FormDataEvent.idl",
|
||||
"//Userland/Libraries/LibWeb/HTML/History.idl",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue