- From: snianu <notifications@github.com>
- Date: Fri, 15 Oct 2021 12:53:03 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/pull/158/review/781188189@github.com>
@snianu commented on this pull request.
> + platform supports writing of the data to the system clipboard in a delayed fashion so the system clipboard can request data on-demand.
+ See https://docs.microsoft.com/en-us/windows/win32/dataxchg/clipboard-operations#delayed-rendering
+
+ <h4 attribute for=ClipboardItem lt=presentationStyle>presentationStyle</h4>
+ <p>It is an <a href=https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attribute>enumerated attribute</a> whose keywords are the <code>string</code>, <code>unspecified</code>, <code>inline</code> and <code>attachment</code>.
+
+ Note: {{ClipboardItem/presentationStyle}} helps distinguish between "inline" data(e.g. selecting text on a web page and copying), vs. file-like data (e.g. copying a plain text file).
+ This difference is used to provide a hint when writing to the system pasteboard on iOS/iPadOS. This allows apps like Notes to insert a file attachment when copying a plain text file from the Files app, but insert text inline when
+ copying a selected piece of plain text from another app. In both cases, the MIME type in the pasteboard would be text/plain. This is used for both reading and writing.
+ </p>
+
+ <p>{{ClipboardItem/presentationStyle}} getter steps are to return [=this=]'s {{ClipboardItem/presentationStyle}}</p>
+
+ Issue: Currently {{ClipboardItem/lastModified}} is not supported in Chromium and Safari, Should we remove it?
+
+ Issue: Delay rendering support has not been added to Chromium and Safari so {{ClipboardItem/delayed}} is unused.
Agreed that it should be removed. Created an issue to discuss this: https://github.com/w3c/clipboard-apis/issues/160
--
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_r730080804
Received on Friday, 15 October 2021 19:53:15 UTC