- From: Edgar Chen <notifications@github.com>
- Date: Mon, 05 May 2025 13:29:17 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 5 May 2025 20:29:21 UTC
EdgarChen 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. Like https://github.com/w3c/clipboard-apis/issues/236#issuecomment-2852181789, I don't think this is for readText() steps... I also tested Chrome, and it doesn’t raise an exception when the system clipboard is empty. This aligns with the behavior of `read()`, where there is a similar discussion in https://github.com/w3c/clipboard-apis/issues/179, and the conclusion is that `read()` should not raise an exception when system clipboard is empty, but resolve with empty sequence. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/236#issuecomment-2852256198 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/issues/236/2852256198@github.com>
Received on Monday, 5 May 2025 20:29:21 UTC