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

@mbrodesser commented on this pull request.



>  
-  dictionary ClipboardItemOptions {
-    PresentationStyle presentationStyle = "unspecified";
+   1. Let |p| be a new [=Promise=].
+
+   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=].

> If it contains a resolved promise, then we resolve |p| with the Blob data.

That's not what's described in the algorithm, or? It always reads from the system clipboard.

-- 
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_r731710829

Received on Tuesday, 19 October 2021 10:14:54 UTC