Re: [w3c/clipboard-apis] Fix `clipboard.readText()` algorithm (PR #238)

@annevk commented on this pull request.

The commit message body could explain a bit more about why this change is being made.

>  
-     1. [=Reject=] |p| with {{"NotFoundError"}} {{DOMException}} in |realm|.
+     1. Resolve |p| with empty string.

```suggestion
     1. Resolve |p| with the empty string.
```

>  
-       1. If |representation|'s [=representation/MIME type=] [=MIME type/essence=] is "text/plain", then:
+        1. Resolve |p| with |systemClipboardRepresentation|'s [=system clipboard representation/data=].

`[=system clipboard representation/data=]` can be a string or a blob, right? But we want to always return a string. How is that going to work now?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/238#pullrequestreview-2845639008
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/pull/238/review/2845639008@github.com>

Received on Friday, 16 May 2025 06:39:15 UTC