- From: snianu <notifications@github.com>
- Date: Fri, 15 Oct 2021 12:41:25 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/pull/158/review/781180338@github.com>
@snianu commented on this pull request. > + Issue: Add definition to clarify what {{ClipboardItem/createDelayed()}} method does. From the discussions it looks like a Windows/Mac only feature where the + 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? + Done. -- 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_r730074814
Received on Friday, 15 October 2021 19:41:38 UTC