Re: [w3c/clipboard-apis] Allow empty ClipboardItem. (PR #198)

@sanketj commented on this pull request.



> @@ -654,7 +654,6 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
    1. Set |clipboardItemObject|'s [=/clipboard item=] to |clipboardItem|.
 
   The <dfn constructor for="ClipboardItem" lt="ClipboardItem(items, options)"><code>new ClipboardItem(<var>items</var>, <var>options</var>)</code></dfn> constructor steps are:
-   1. If |items| is empty, then throw a {{TypeError}}.

What is the behavior on other browsers? Are they compliant with the spec after this update?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/198#pullrequestreview-1719067615
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/pull/198/review/1719067615@github.com>

Received on Wednesday, 8 November 2023 00:12:07 UTC