- From: mbrodesser <notifications@github.com>
- Date: Wed, 19 Jan 2022 01:53:30 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/pull/158/review/856546386@github.com>
@mbrodesser commented on this pull request. > + <dd><p>Returns a [=Promise=] to the {{Blob}} corresponding to <var>type</var>.</p> + + <dt><code><var>clipboardItem</var>.<var>types</var></code> + <dd><p>Returns the list of <var>types</var> contained in the <var>clipboardItem</var> object. + + </dl> + + <h4 id="clipboard-item">Clipboard Item</h4> + + A <dfn>clipboard item</dfn> is conceptually data that the user has expressed a desire to make shareable by invoking a "cut" or "copy" command. + + <p class=note> + For example, if a user copies a range of cells from a spreadsheet of a native application, it will result in one [=/clipboard item=]. If a user copies a set of files from their desktop, that list of files will be represented by multiple [=/clipboard item=]s. + </p> + + Some platforms may support having more than one [=/clipboard item=] at a time on the [=clipboard=], while other platforms replace the previous [=/clipboard item=] with the new one. Thanks for the clarification. So to be strictly correct `data[0]` can't be assigned to `data`. The former represents one `ClipboardItem` object, the latter a `sequence`. The next step of the algorithm is broken because of that. Either `data` has to be correctly truncated to the first element or it needs to be replaced by a new sequence containing only the first element. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/pull/158#discussion_r787560502 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/pull/158/review/856546386@github.com>
Received on Wednesday, 19 January 2022 09:53:43 UTC