- From: mbrodesser <notifications@github.com>
- Date: Tue, 14 Dec 2021 01:27:43 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 14 December 2021 09:27:56 UTC
@mbrodesser 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|. Should be `Set |representation|'s [=representation/MIME type=] to |mimeType|`. -- 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#pullrequestreview-831221532
Received on Tuesday, 14 December 2021 09:27:56 UTC