Re: [w3c/editing] Explicitly define supported MIME types in Async Clipboard Spec (#305)

So looking at the Gecko we seem to support a lot of MIME types when using the `clipboarData` API like
```
window.addEventListener('copy', event => {
    event.clipboardData.setData('text/plain', "Hello World!");
    event.clipboardData.setData('text/x-moz-url', "http://example.org\nTitle")
    event.clipboardData.setData('text/rtf', "RTF mime");
    event.preventDefault();
});
```
The actual list is here: https://searchfox.org/mozilla-central/rev/2f1a015b004b79f1145c81cdf86b15481a5630e2/dom/events/DataTransfer.cpp#941. I hadn't actually looked at this before, I am not convinced we should support all of them. @annevk

For `clipboard.write`, which we aren't shipping anywhere, we support `text/plain`, `text/html` and `image/png`. I suspect we would align with whatever is specified before shipping.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/305#issuecomment-845116546

Received on Thursday, 20 May 2021 13:23:09 UTC