- From: Sanket Joshi <notifications@github.com>
- Date: Wed, 15 Nov 2023 17:21:57 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/pull/197/review/1733312884@github.com>
@sanketj requested changes on this pull request. > + * image/png (which should remain unsanitized to preserve meta data) The "(which should remain unsanitized to preserve meta data)" part is a bit distracting and isn't sufficient context if the reader did want to know more about this. Can we instead leave a non-normative note about this? > @@ -816,7 +808,11 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn; {{Clipboard/read()}} returns a {{Promise}} to [=clipboard items=] object that represents contents of [=system clipboard data=]. </p> - {{ClipboardUnsanitizedFormats/unsanitized}} is a [=sequence=] of {{DOMString}}s corresponding to the [=representation/mime type=] that are in the [=unsanitized data types=]. + <dfn>Optional unsanitized data types</dfn> are [=representation/mime type=]s that MUST not be sanitized by the user agent. The valid [=optional unsanitized data types=] are listed below: nit: You use "MUST not" here vs. "MUST NOT" above. Can we make these consistent? > @@ -816,7 +808,11 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn; {{Clipboard/read()}} returns a {{Promise}} to [=clipboard items=] object that represents contents of [=system clipboard data=]. </p> - {{ClipboardUnsanitizedFormats/unsanitized}} is a [=sequence=] of {{DOMString}}s corresponding to the [=representation/mime type=] that are in the [=unsanitized data types=]. + <dfn>Optional unsanitized data types</dfn> are [=representation/mime type=]s that MUST not be sanitized by the user agent. The valid [=optional unsanitized data types=] are listed below: Can we move the definition of "optional unsanitized data types" up below the definition of "unsanitized data types"? That would be better for readability. > @@ -833,7 +829,7 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn; 1. For each |format| in |formats|["{{ClipboardUnsanitizedFormats/unsanitized}}"]: - 1. If |format| is not in [=unsanitized data types=], then [=reject=] |p| with |format| {{"NotAllowedError"}} {{DOMException}} in |realm|. + 1. If |format| is not in [=optional unsanitized data types=], then [=reject=] |p| with |format| {{"NotAllowedError"}} {{DOMException}} in |realm|. What's the reason this needs to be done in a separate for each loop here vs. inside the loop on line 866? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/pull/197#pullrequestreview-1733312884 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/pull/197/review/1733312884@github.com>
Received on Thursday, 16 November 2023 01:22:03 UTC