Re: [w3c/clipboard-apis] Add clipboard IDL description. (#158)

@snianu commented on this pull request.



> +  :: |option|, a [=ClipboardItem/clipboard item=]'s [=presentation style=]
+
+  : Output
+  :: None
+
+  1. If the |items| list is not empty, then
+
+   1. For each |item| in |items|:
+
+    1. If data type is <i>text/plain</i>, then
+
+     1. Ensure encoding is correct per OS and locale conventions
+
+     1. Normalize line endings according to platform conventions
+
+     1. Place text on clipboard with the appropriate OS clipboard

This is the part that interacts with the system clipboard so not sure if I can use [=clipboard items=] to write contents to the OS clipboard service. I'll add some more details about OS specific formats and write methods.

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

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

Received on Thursday, 6 January 2022 21:28:28 UTC