Re: [w3c/clipboard-apis] Clarifying `clipboard.readText()` behaviour (Issue #236)

Gae24 left a comment (w3c/clipboard-apis#236)

Regarding the last steps:
> 1. For each systemClipboardItem in data:
> ...
> 2. [Reject](https://webidl.spec.whatwg.org/#reject) p with ["NotFoundError"](https://webidl.spec.whatwg.org/#notfounderror) [DOMException](https://webidl.spec.whatwg.org/#idl-DOMException) in realm.
> 3. Return p.

Is it to return an error if the clipboard is empty or if no systemClipboardItem has a string representation? Tested with Firefox and Edge and they don't raise an exception.

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

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

Received on Thursday, 1 May 2025 17:37:08 UTC