Re: [w3c/clipboard-apis] Add clipboard IDL description. (#158)

@mbrodesser commented on this pull request.



>  
-    Promise<Blob> getType(DOMString type);
-  };
+   <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 [=clipboard item=] is conceptually data that the user has expressed a desire to make shareable by invoking a "cut" or "copy" command.

> Paste wouldn't do anything if there is nothing on the clipboard.

If there's something on the system clipboard, pasting it to the browser would create a `ClipboardItem`, which, according to section 7.2.1 has an associated clipboard item: "A ClipboardItem object has an associated clipboard item, which is a clipboard item."

-- 
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_r764738595

Received on Wednesday, 8 December 2021 10:30:54 UTC