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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of data

data

Photo of Web

Web

Photo of different types

different types

Related news:

News photo

Show HN: Create notes and maps that live outdoors with web and AR integration

News photo

The org behind the dataset used to train Stable Diffusion claims it has removed CSAM

News photo

Researcher sued for sharing data stolen by ransomware with media