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

@snianu commented on this pull request.



> +
+   1. Let |webCustomFormat| be the [=os specific custom name=].
+
+   1. Let |webCustomFormatIdx| be the result of appending |idx| to |webCustomFormat|.
+
+   1. Insert |mimeType| as key and |webCustomFormatIdx| as value into the |webCustomFormatMap|.
+
+    Note: Need a JSON writer to serialize the content into the |webCustomFormatMap|.
+
+   1. Insert the |item| into the [=system clipboard=] using |webCustomFormatIdx| as the format.
+
+   1. Increment |idx|.
+
+   1. If |idx| is greater than 100, then break from this loop.
+
+  1. Insert the |webCustomFormatMap| into the [=system clipboard=].

Done.

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

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

Received on Thursday, 26 May 2022 01:14:43 UTC