- From: snianu <notifications@github.com>
- Date: Tue, 19 Sep 2023 17:25:57 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 20 September 2023 00:26:03 UTC
@evanstade Per [the web custom format proposal](https://github.com/w3c/clipboard-apis/issues/165#issue-1117218251), web custom formats are arbitrary types that are denoted by the prefix "web " ("web" followed by U+0020 SPACE) to distinguish them from built-in types, so we only need to check for the web prefix. The custom MIME type is specified by the web author at the time of ClipboardItem object creation which is when we validate the `type/subtype` format. See [step 5 in the constructor ](https://w3c.github.io/clipboard-apis/#dom-clipboarditem-clipboarditem)where this validation is done. So, in your example we will return true for all cases except 1. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/pull/192#issuecomment-1726712264 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/pull/192/c1726712264@github.com>
Received on Wednesday, 20 September 2023 00:26:03 UTC