- From: snianu <notifications@github.com>
- Date: Mon, 13 Dec 2021 11:43:08 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 13 December 2021 19:43:21 UTC
@snianu commented on this pull request.
> + The <a constructor lt="ClipboardItem()">constructor</a> steps for <code>new ClipboardItem(<var>items</var>, <var>options</var>)</code> are:
+ 1. Set [=this=]'s [=ClipboardItem/clipboard item=] to a new [=clipboard item=].
+
+ 1. Set [=this=]'s [=ClipboardItem/clipboard item=]'s [=presentation style=] to |options|["{{ClipboardItemOptions/presentationStyle}}"].
+
+ 1. Let |types| be a list of {{DOMString}}.
+
+ 1. For each (|key|, |value|) in |items|:
+
+ 1. Let |mimeType| be the result of [=parse a mime type=] given |key|.
+
+ 1. If |mimeType| is failure, then throw a {{TypeError}}.
+
+ 1. Let |representation| be a new [=representation=].
+
+ 1. Set |representation|'s [=mime type=] to |key|.
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_r768067074
Received on Monday, 13 December 2021 19:43:21 UTC