Re: [w3c/clipboard-apis] Specify order of flavors exported to macOS's pasteboard (#137)

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.

-- 
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-780131151

Received on Tuesday, 16 February 2021 21:33:48 UTC