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

@snianu commented on this pull request.



> @@ -542,6 +542,19 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
    * Custom format [=string/starts with=] `"web "`("web" followed by U+0020 SPACE) prefix
     and suffix (after stripping out `"web "`) passes the [=parsing a MIME type=] check.
 
+ <h3 id="unsanitized-data-types-x"><dfn>Unsanitized data types</dfn></h3>
+
+  The implementation MAY recognize the native OS clipboard format description
+  for the following data types, to be able to populate the
+  {{ClipboardItem}} with the correct description for paste events, and
+  set the correct data format on the OS clipboard in response to copy and cut
+  events.
+
+   These data types must not be sanitized and should be exposed by UAs

The intention is to not sanitize any formats that are in the `Unsanitized data types` list. If the web authors specify any other MIME types, then we will reject that MIME type during `read`.

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

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

Received on Tuesday, 14 November 2023 21:40:45 UTC