- From: Evan Stade <notifications@github.com>
- Date: Tue, 19 Sep 2023 17:12:41 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 20 September 2023 00:12:46 UTC
I think the exact wording and behavior here still warrant discussion even though the EditingWG approved the general idea of it (?) 1.5 years ago. Specifically, which of the following should return true if web custom formats are supported, and why? ``` ClipboardItem.supports('web'); // 1 ClipboardItem.supports('web '); // 2 ClipboardItem.supports('web image/jpeg'); // 3 ClipboardItem.supports('web text/plain'); // 4 ClipboardItem.supports('web txt/plain'); // 5 ClipboardItem.supports('web application/foobar'); // 6 ``` 1,2. These are not valid types per se, just a part of a type. But if a site just wants to know if web custom formats are supported, then one of these is probably sufficient. That is, the browser only needs to return true for the exact string `web` or `web `. 4. Is there a point in supporting this? Is it equivalent to `text/plain` alone, or not? 5. This is not a real MIME type. Should it be "supported"? 6. This is a real MIME type. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/pull/192#issuecomment-1726703751 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/pull/192/c1726703751@github.com>
Received on Wednesday, 20 September 2023 00:12:46 UTC