Get the latest tech news
The web's clipboard, and how it stores data of different types
Exploring the web's clipboard APIs, their limitations, and their history.
I find it surprising that Google doesn't attempt to fall back to the async Clipboard API when execCommand("paste") is unavailable. It writes the custom data to com.apple.WebKit.custom-pasteboard-data and, interestingly, it also stores the full list of representations (including plain text and HTML) and source URL there. Figma's approach of placing base64 strings into an HTML representation is crude but effective in that it circumvents the plethora of limitations around the clipboard API.
Or read this on Hacker News