mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
LibWeb: Implement the DataTransferItem kind and type attributes
This commit is contained in:
committed by
Andreas Kling
parent
ceb9e30d42
commit
001d8384e5
Notes:
github-actions[bot]
2024-08-22 12:22:21 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/001d8384e5e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1158 Reviewed-by: https://github.com/shannonbooth
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user