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

@snianu commented on this pull request.



> +
+   1. If |type| is not listed in the [=mandatory data types=] list, then reject |p| with a "The type was not found" DOMException.
+
+   1. Let |data| be the result of reading the |type| from the [=system clipboard=].
+
+   1. Let |blobData| be the |data| represented as a [=Blob=].
+
+   1. Resolve |p| with |blobData|.
+
+  <h4 typedef>ClipboardItemDataType</h4>
+  <p>
+    It is a {{DOMString}} or [=Blob=] type. This contains the payload corresponding to the MIME type while creating a [=ClipboardItem=] object.
+  </p>
+  <h4 typedef>ClipboardItemData</h4>
+  <p>
+   It is a [=Promise=] to the {{ClipboardItemDataType}}.

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_r740577530

Received on Monday, 1 November 2021 22:46:32 UTC