Re: [w3c/clipboard-apis] Add supports API for async clipboard. (PR #192)

The Web Editing Working Group just discussed `Add supports API for async clipboard.`, and agreed to the following:

* `RESOLVED: make the change that authors have to provide the full custom format with 'web ' (with space) prefix, and MIME type suffix.`

<details><summary>The full IRC log of that discussion</summary>
&lt;dandclark> topic: Add supports API for async clipboard.<br>
&lt;dandclark> github: https://github.com/w3c/clipboard-apis/pull/192<br>
&lt;dandclark> snianu: Supports API that was proposed some years ago, was proposed to feature detect in async clipboard API. So can determine if format is supported or not.<br>
&lt;dandclark> snianu: We had consensus in the WG that it's a good addition. Had stated need from web devs too. Need to know if given format is supported. Custom formats  can be expensive to produce.<br>
&lt;dandclark> snianu: Leads to unnecessary work otherwise, to generate unsupported formts.<br>
&lt;dandclark> snianu: In this issue, proposal is for web custom formats, instead of just providing web prefix the author has to provide entire MIME type, web prefix and suffix.<br>
&lt;dandclark> snianu: If it's a valid format with 'web ' prefix, return true, else false.<br>
&lt;dandclark> snianu: Was some confusion with web custom formats we require the 'web ' prefix. Without the space it's invalid MIME type.<br>
&lt;dandclark> snianu: We strip out the 'web ' prefix and parse the MIME type to see if it's valid MIME type. Proposal is to let authors provide the entire format with the 'web ' prefix<br>
&lt;dandclark> snianu: 'web' and 'web ' (witth space) might be convenient to authors, but if they provide invalid MIME that it fails. So is better to require entire name, as 'web MIMEtype'. Ensures that format is valid and write will succeed.<br>
&lt;dandclark> johanneswilm: No comments from other implementers, what's this mean?<br>
&lt;dandclark> whsieh: Seems fine to me<br>
&lt;dandclark> johanneswilm: Can we resolve or is this controversial?<br>
&lt;dandclark> snianu: It's straightforward. We will make the change that authors have to provide the full custom format with 'web ' (with space) prefix, and MIME type suffix.<br>
&lt;dandclark> RESOLVED: make the change that authors have to provide the full custom format with 'web ' (with space) prefix, and MIME type suffix.<br>
</details>


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

Message ID: <w3c/clipboard-apis/pull/192/c1759893320@github.com>

Received on Thursday, 12 October 2023 15:52:18 UTC