serenity/Userland/Libraries/LibWeb/HTML/DataTransferItemList.idl
Timothy Flynn a6d010c247 LibWeb: Implement the DataTransferItemList indexed getter
(cherry picked from commit ceb9e30d422425582ac1db857ff4c786fb7e212c)
2024-11-01 22:04:14 -04:00

13 lines
464 B
Text

#import <FileAPI/File.idl>
#import <HTML/DataTransferItem.idl>
// https://html.spec.whatwg.org/multipage/dnd.html#datatransferitemlist
[Exposed=Window]
interface DataTransferItemList {
readonly attribute unsigned long length;
getter DataTransferItem (unsigned long index);
DataTransferItem? add(DOMString data, DOMString type);
DataTransferItem? add(File data);
[FIXME] undefined remove(unsigned long index);
[FIXME] undefined clear();
};