Re: [w3c/clipboard-apis] Add Web Custom format (PR #175)

@snianu commented on this pull request.



> +
+  : Input
+  :: |mimeType|, a string
+
+  : Output
+  :: |item|, a {{Blob}}
+
+  1. Let |webCustomFormatMap| be the [=os specific custom map name=].
+
+  1. Read |webCustomFormatMap| from the [=system clipboard=].
+
+  1. Let |webCustomFormatMapString| be the JSON string deserialized from |webCustomFormatMap|.
+
+   Note: Need a JSON reader to deserialize the content from the |webCustomFormatMap|.
+
+  1. Let |webCustomFormat| be the value corresponding to the |mimeType| key in |webCustomFormatMapString|.

I'm looping through the key value pair now, so removed this extra step as it's redundant.

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

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

Received on Thursday, 26 May 2022 00:21:16 UTC