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

@mbrodesser requested changes on this pull request.

@snianu thanks for incorporating the feedback. Ready to approve when the two new comments are addressed.

>       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|.
+     Issue: Add definition of sanitized copy.
+
+    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|.

`create a ClipboardItem object` requires a `Realm` too.

CC @domenic 

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

Message ID: <w3c/clipboard-apis/pull/158/review/897469820@github.com>

Received on Wednesday, 2 March 2022 11:52:44 UTC