- From: snianu <notifications@github.com>
- Date: Mon, 20 Mar 2023 15:18:23 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 20 March 2023 22:18:35 UTC
@snianu commented on this pull request. > - [SecureContext, Exposed=Window] interface Clipboard : EventTarget { - Promise<ClipboardItems> read(); - Promise<DOMString> readText(); - Promise<undefined> write(ClipboardItems data); - Promise<undefined> writeText(DOMString data); - }; + [SecureContext, Exposed=Window] + interface ClipboardItem { + constructor(record<DOMString, ClipboardItemData> items, + optional ClipboardItemOptions options = {}); + + readonly attribute PresentationStyle presentationStyle; + readonly attribute FrozenArray<DOMString> types; + + Promise<Blob> getType(DOMString type); Yeah, this method isn't returning a type -- It's returning a promise to the content (in the form of Blob) of that type. I can't change the IDL unfortunately since both WebKit and Chromium have already shipped this API. This PR was made to clarify the algorithms and interfaces that have been shipped already. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/pull/158#discussion_r1142729900 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/pull/158/review/1349476631@github.com>
Received on Monday, 20 March 2023 22:18:35 UTC