- From: mbrodesser <notifications@github.com>
- Date: Thu, 25 Feb 2021 05:48:27 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/issues/137/785907239@github.com>
> Ah, yes. We had to deal with this problem specifically with Pages. The justification of their behavior comes from: > https://developer.apple.com/documentation/appkit/nspasteboard/1533561-declaretypes?language=objc > > > The types should be ordered according to the preference of the source application, with the most preferred type coming first (typically, the richest representation). > > That [Pasteboard Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/PasteboardGuide106/Articles/pbConcepts.html#//apple_ref/doc/uid/TP40008101-SW1)'s mentioning of preferring the most fluid / rich content type is relatively new thing. It happened as a result of continuity pasteboard since iOS's UIPasteboard didn't use to allow specifying the ordering between types. > > This ordering issue is precisely what prompted us to suggest that the types in [`ClipboardItem`](https://www.w3.org/TR/clipboard-apis/#clipboarditem) should be ordered. > > Now, I'm not certain that there is much we can do in terms of specification since this issue is very much platform dependent. We have a bunch of heuristics to determine in what order we want to write stuff into the pasteboard with various compatibility hacks but that's not something we want to standardize as we can't even agree on what to do in macOS vs. iOS. Which compatibility hacks? It would be nice specify this somehow. Perhaps even OS specific? Otherwise, it's hard for browsers to stay compatible. -- 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/issues/137#issuecomment-785907239
Received on Thursday, 25 February 2021 13:48:40 UTC