Re: [w3c/clipboard-apis] Add `unsanitized` option to async clipboard API. (PR #197)

@snianu commented on this pull request.



>  
    1. Let |realm| be [=this=]'s [=relevant realm=].
 
    1. Let |p| be [=a new promise=] in |realm|.
 
+   1. Let |format| be a {{DOMString}}.
+
+   1. If |formats| is not empty, then:
+
+     1. If |formats|'s size is greater than 1, then [=reject=] |p| with {{"NotAllowedError"}} {{DOMException}} in |realm|.
+
+     1. Set |format| to |formats|[0].
+
+     1. If |format| is not [=unsanitized mime types=], then [=reject=] |p| with {{"NotAllowedError"}} {{DOMException}} in |realm|.

Done.

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

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

Received on Tuesday, 31 October 2023 21:31:03 UTC