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

@snianu commented on this pull request.



>    };
   </pre>
 
-  <div id="clipboard-idl" dfn-for="Clipboard">
+  A <dfn>Clipboard</dfn>'s <code>read()</code> and <code>write()</code> methods must support <dfn>Clipboard Items</dfn> that has one or more [=/clipboard item=]s.
+
+  <p class="note">
+  Writing multiple [=/clipboard item=]s to the clipboard is only supported on Apple platforms such as iOS/iPadOS. For other platforms, only the first [=/clipboard item=] should be written to the clipboard.
+  </p>
+
+  A web author needs to create a |data| which is a [=Clipboard items=] object in order to write content to [=system clipboard=] using the {{Clipboard/write(data)}} method.
+  {{Clipboard/read()}} returns a [=Promise=] to [=Clipboard items=] object that represents contents of [=system clipboard=].
+  A [=/clipboard item=] can be read from [=clipboard items=].

Done.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/158#discussion_r779214227
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/pull/158/review/845169811@github.com>

Received on Wednesday, 5 January 2022 23:58:12 UTC