この翻訳は不完全です。英語から この記事を翻訳 してください。

The DataTransferItemList object is a list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.

This interface has no constructor.


DataTransferItemList.length Read only
An unsigned long that is the number of drag items in the list.


Adds an item (either a File object or a string) to the drag item list and returns a DataTransferItem object for the new item.
Removes the drag item from the list at the given index.
Removes all of the drag items from the list.
Getter that returns a DataTransferItem at the given index.


Each of this interface's methods and properties has a reference page, and each reference page has an example of its usage.


Specification Status Comment
HTML Living Standard
The definition of 'DataTransferItemList' in that specification.
Living Standard  
HTML 5.1
The definition of 'DataTransferItemList' in that specification.
Recommendation Not included in W3C HTML5 Recommendation

Browser compatibility


FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support4 Yes50 No1211.1
DataTransferItemList[]4 ?50 No12 No
add No Yes50 No12 No
clear4 Yes50 No12 No
length4 Yes50 No12 No
remove4 Yes50 No12 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No No ?50 No No ?
DataTransferItemList[] No No ?50 No No ?
add No No ?50 No No ?
clear No No ?50 No No ?
length No No Yes50 No No ?
remove No No Yes50 No No ?



このページの貢献者: fscholz
最終更新者: fscholz,