[w3c/clipboard-apis] What should `clipboard.readText()` return when the clipboard contains multiple clipboard items? (Issue #166)

Currently, `clipboard.readText()` returns a `Promise<DOMString>`. However, when `clipboard.read()` would return multiple `ClipboardItem`s, multiple of those items may contain a `text/plain` representation.

I see the following answers to above question:
1. Specify to return either the first or the last item's `text/plain` representation.
2. Specify to throw an error and a method like `clipboard.getNumberOfClipboardItems()`.
3. Specify to return a sequence of `DOMString`s.

Since multiple `ClipboardItem`s are only supported on Apple's OSs, Apple's view on this would be appreciated.
cc @whsieh

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

Message ID: <w3c/clipboard-apis/issues/166@github.com>

Received on Monday, 31 January 2022 11:54:56 UTC