- From: snianu <notifications@github.com>
- Date: Mon, 03 Jan 2022 10:30:08 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 3 January 2022 18:30:20 UTC
@snianu commented on this pull request.
> + The <dfn constructor for="ClipboardItem" lt="ClipboardItem(items, options)"><code>new ClipboardItem(<var>items</var>, <var>options</var>)</code></dfn> constructor steps are:
+ 1. Set [=this=]'s [=ClipboardItem/clipboardItem=] to a new [=clipboard item=].
+
+ 1. Set [=this=]'s [=ClipboardItem/clipboardItem=]'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 [=parsing 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 [=representation/MIME type=] to |key|.
Done.
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/158#discussion_r777637567
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/clipboard-apis/pull/158/review/842950406@github.com>
Received on Monday, 3 January 2022 18:30:20 UTC