- From: mbrodesser <notifications@github.com>
- Date: Wed, 15 Dec 2021 01:48:24 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 15 December 2021 09:48:37 UTC
@mbrodesser commented on this pull request.
> +
+ 1. For each |representation| in |itemTypeList|:
+
+ 1. If |representation|'s [=representation/MIME type=] is |mimeType|, then:
+
+ 1. Let |p1| be the |representation|'s [=representation/data=].
+
+ 1. [=promise/React=] to |p1|:
+
+ 1. If |p1| was fulfilled with value |v|, then:
+
+ 1. If |v| is a {{DOMString}}, then follow the below steps:
+
+ 1. Let |v1| be the result of [=/encoding=] |v|.
+
+ 1. Let |blobData| be a [=Blob=] created using |v1| with its {{Blob/type}} set to |mimeType|, [=serialize a MIME type|serialized=].
@domenic the idea behind above proposal was to invoke `Blob`s constructor, https://w3c.github.io/FileAPI/#dom-blob-blob.
`{type: |serializedMimeType|}` should represent a dictionary with `type` as key and `serializedMimeType` as value. Now I see that `endings: "transparent"` would have to be passed too, i.e.:
`Let |blobData| be a new [=Blob=] created with |v1| and {type: |serializedMimeType|, endings : "transparent"}.`
If there's a misunderstanding behind that proposal, please let me know.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/158#discussion_r769447724
Received on Wednesday, 15 December 2021 09:48:37 UTC