Re: [w3c/clipboard-apis] Add clipboard IDL description. (#158)

@snianu commented on this pull request.



>       
      Note: As further described in [[#image-transcode]] this explicitly does not transcode images.
      Rather the original unmodified image data should be exposed to the website.
 
-    1. Resolve |p| with |data|.
+    1. [=Queue a global task=] on the [=clipboard task source=], given |realm|'s [=Realm/global object=], to perform the below steps:
+
+     1. Let |items| be a [=sequence=]<{{ClipboardItem}}>.
+
+     1. For each [=clipboard item=] |underlyingItem| of |data|:
+
+      1. Let |item| be the result of running the steps of [=create a ClipboardItem object=] given |underlyingItem|.
+
+      1. Append |item| to |items|.
+
+      1. Resolve |p| with |items|.

Done.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/158#discussion_r768069057

Received on Monday, 13 December 2021 19:46:10 UTC