[w3c/clipboard-apis] Update `clipboard.write()` example to use a `ClipboardItem` list. (#111)

The current example doesn't match the specification (taking an array of `ClipboardItem`s), and doesn't work in e.g. Chrome.

I've updated it so that it matches the spec, which makes it work in Chrome.
(I've also fixed some smart quotes so this works correctly if it's copied and pasted.)

The following tasks have been completed:

 * [ ] Confirmed there are no ReSpec/BikeShed errors or warnings.
 * [ ] Modified Web platform tests (link to pull request)

Implementation commitment:

 * [ ] WebKit (https://bugs.webkit.org/show_bug.cgi?id=)
 * [ ] Chromium (https://bugs.chromium.org/p/chromium/issues/detail?id=)
 * [ ] Gecko (https://bugzilla.mozilla.org/show_bug.cgi?id=)
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Update `clipboard.write()` example to use a `ClipboardItem` list.

-- File Changes --

    M index.bs (6)
    M index.html (6)

-- Patch Links --

https://github.com/w3c/clipboard-apis/pull/111.patch
https://github.com/w3c/clipboard-apis/pull/111.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/111

Received on Friday, 28 February 2020 05:39:32 UTC