- From: snianu <notifications@github.com>
- Date: Fri, 03 Nov 2023 09:19:10 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/pull/197/review/1713095570@github.com>
@snianu commented on this pull request. > @@ -841,7 +861,11 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn; Issue: It should be possible to read the data asynchronously from the system clipboard after the author calls getType, however, this set of steps implies that data will be provided at the time of read. - 1. The user agent, MAY sanitize |representation|'s [=representation/data=], unless |representation|'s [=representation/MIME type=]'s essence is "image/png", which should remain unsanitized to preserve meta data. + 1. The user agent, MAY sanitize |representation|'s [=representation/data=], unless it satisfies the below conditions: + + 1. |representation|'s [=representation/MIME type=]'s [=MIME type/essence=] is "image/png", which should remain unsanitized to preserve meta data. + + 1. If |format| is not empty and |representation|'s [=representation/MIME type=]'s [=MIME type/essence=] is equal to |format|. basically yes. We extract the first DOMString in the `If |formats| is not empty, then` steps and then try to match the MIME type with it in this highlighted step. In this case it will be just `text/html` mime type. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/pull/197#discussion_r1381941198 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/pull/197/review/1713095570@github.com>
Received on Friday, 3 November 2023 16:19:19 UTC