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

> A concatenation of the strings for the specified type from all the items in the receiver that contain the type, or nil if none of the items contain strings of the specified type.

I'm not sure, but that might yield unexpected results when some items don't contain a `text/plain` representation; and there's no guarantee that they do.

Solution 2 and 3 proposed in https://github.com/w3c/clipboard-apis/issues/166#issue-1119331749 don't yield such unexpected results (specifying that the third solution returns empty strings for those items not containing `text/plain` representations).

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

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

Received on Wednesday, 2 February 2022 10:14:56 UTC