- From: snianu <notifications@github.com>
- Date: Tue, 18 Jan 2022 17:24:23 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 19 January 2022 01:24:50 UTC
@snianu commented on this pull request. > + const clipboardItemInput = new ClipboardItem( + {[format1]: promise_text_blob}, + {presentationStyle: "unspecified"}); + </pre> + + <dt><code><var>clipboardItem</var>.getType(<var>type</var>)</code> + <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. Re website creating a `ClipboardItem`: This text is a conceptual definition of a `clipboard item`. While web sites can create `ClipboardItem`s, it wouldn't make sense to write the content to the clipboard if the user hasn't expressed the desire to "copy" or "cut" the data. I added the text you suggested after the definition of the `clipboard item` concept. It is definitely useful to clarify the concept. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/pull/158#discussion_r787278139 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/pull/158/review/856150216@github.com>
Received on Wednesday, 19 January 2022 01:24:50 UTC