- From: snianu <notifications@github.com>
- Date: Thu, 22 Feb 2024 09:52:26 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 22 February 2024 17:52:30 UTC
Adding @evanstade to this thread as well. I agree that maintaining order in the system clipboard is important for native apps to pick the most desired format during paste. On Windows, the guidance is to place the high fidelity formats at the top: > Clipboard formats that contain the most information should be placed on the clipboard first, followed by less descriptive formats. A window pasting information from the clipboard typically retrieves a clipboard object in the first format it recognizes. Because clipboard formats are enumerated in the order they are placed on the clipboard, the first recognized format is also the most descriptive. https://learn.microsoft.com/en-us/windows/win32/dataxchg/clipboard-formats#multiple-clipboard-formats I'm not sure if we can standardize the ordering of the formats in the system clipboard, but perhaps we can maintain the order of the formats in the `ClipboardItem` as specified by the web authors during `navigator.clipboard.write`? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/137#issuecomment-1959964282 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/issues/137/1959964282@github.com>
Received on Thursday, 22 February 2024 17:52:30 UTC