Re: [w3c/editing] clarifications for the pickling design proposal (Issue #393)

Oh, sorry, I didn't realize what you were asking.  That's a great question.  I believe the *model* supports it on platforms that support including arbitrary formats into history.

From my testing on Windows, only a handful of well-known formats are included in clipboard history; there is no support for custom formats.  [This StackOverflow post](https://stackoverflow.com/questions/63231657/does-the-winrt-clipboard-history-only-support-text-and-images) seems to corroborate my findings.

But if Windows did support custom formats in clipboard history, or if we are talking about another platform that allows it, we could include the "Web Custom Format Map" and the applicable "Web Custom Format0..N" entries into history based on some hint from the author as discussed in [this issue](https://github.com/w3c/clipboard-apis/issues/154).  Apps, like the browser, would see these custom formats restored on the clipboard and handle them in the same way as when they were first written to the clipboard - with the exception that we might not restore all "Web Custom Format" slots.  Apps should be prepared for the case when the "Web Custom Format Map" has mime-types that weren't included in the history, i.e. a mime-type may reference a "Web Custom Format" slot that wasn't restored so the app should handle that case by ignoring that entry from the "Web Custom Format Map".

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/393#issuecomment-1068878209
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/393/1068878209@github.com>

Received on Wednesday, 16 March 2022 08:50:33 UTC