[w3c/clipboard-apis] Spec readiness and compat (#135)

I started working on an implementation of `ClipboardItem` and `clipboard.write` using that in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1619947

I don't think the current spec can be implemented without either reverse-engineering other browser or just guessing.

- Especially `ClipboardItem` is missing descriptions of all its methods and properties. Some behavior can not just be inferred by name.
  - What is `createDelayed`? It's not implemented by Chrome
  - How to handle `DOMString` in `ClipboardItemDataType`. The rest of the spec only seems to handle `Blob`.
  - Chrome only supports the `types` property. Safari seems to support `presentationStyle` as well.
  - I am especially concerned about the **missing** Promise support for `ClipboardItemData` in Chrome.

- The spec doesn't really define which MIME types should be supported for write. Chrome only supports a handful.

Sorry I can't easily test Safari, but looking at their IDL definition they also only implement a subset of this spec.

-- 
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/issues/135

Received on Tuesday, 1 December 2020 11:10:54 UTC