ladybird/Libraries/LibWeb/HTML/DataTransferItemList.idl

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();
};