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

@snianu commented on this pull request.



> +
+       1. If |v| is a {{DOMString}}, then follow the below steps:
+
+        1. Let |dataAsBytes| be the result of [=UTF-8 encoding=] |v|.
+
+        1. Let |blobData| be a {{Blob}} created using |dataAsBytes| with its {{Blob/type}} set to |mimeType|, [=serialize a MIME type|serialized=].
+
+        1. Resolve |p| with |blobData|.
+
+       1. If |v| is a {{Blob}}, then follow the below steps:
+
+        1. Resolve |p| with |v|.
+
+      1. If |representationDataPromise| was rejected, then:
+
+       1. [=Reject=] |p| with {{"NotFoundError"}} {{DOMException}} in |realm|.

Ack.

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

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

Received on Wednesday, 19 January 2022 00:57:10 UTC