[w3c/clipboard-apis] Change the ClipboardItem constructor to `ClipboardItemData`. (#126)

Right now:

- `ClipboardItemDataType` is a `string` or a `Blob`;
- `ClipboardItemData` is a *Promise* of a `ClipboardItemDataType`.

There are definitely some compatibility issues in the wild. In particular, Chrome only accepts `Blob`s, and throws an exception if you pass in a string or a Promise. Is it possible that the constructor is supposed to take `ClipboardItemDataType` values? If not, should it accept any values that are either `ClipboardItemDataType` *or* `ClipboardItemDataType`?
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/clipboard-apis/pull/126

-- Commit Summary --

  * Change the ClipboardItem constructor to `ClipboardItemData`.

-- File Changes --

    M index.bs (2)

-- Patch Links --

https://github.com/w3c/clipboard-apis/pull/126.patch
https://github.com/w3c/clipboard-apis/pull/126.diff

-- 
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/clipboard-apis/pull/126

Received on Thursday, 25 June 2020 10:35:39 UTC