mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
LibWeb: Implement the DataTransferItem kind and type attributes
This commit is contained in:
parent
ceb9e30d42
commit
001d8384e5
Notes:
github-actions[bot]
2024-08-22 12:22:21 +00:00
Author: https://github.com/trflynn89
Commit: 001d8384e5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1158
Reviewed-by: https://github.com/shannonbooth
7 changed files with 65 additions and 6 deletions
|
@ -9,7 +9,7 @@
|
|||
println(`length=${dataTransferItemList.length}, types=${dataTransfer.types}`);
|
||||
|
||||
let stringItem = dataTransferItemList.add("well hello friends", "custom-type");
|
||||
println(`stringItem: ${stringItem}`);
|
||||
println(`stringItem: kind=${stringItem.kind}, type=${stringItem.type}`);
|
||||
println(`length=${dataTransferItemList.length}, types=${dataTransfer.types}`);
|
||||
|
||||
if (dataTransferItemList[0] !== stringItem) {
|
||||
|
@ -26,7 +26,7 @@
|
|||
});
|
||||
|
||||
let fileItem = dataTransferItemList.add(file);
|
||||
println(`fileItem: ${fileItem}`);
|
||||
println(`fileItem: kind=${fileItem.kind}, type=${fileItem.type}`);
|
||||
println(`length=${dataTransferItemList.length}, types=${dataTransfer.types}`);
|
||||
|
||||
if (dataTransferItemList[1] !== fileItem) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue