← Back to release summary

text/html support for async clipboard api

Category
Capabilities (Fugu)
Type
New or changed feature
Status
Enabled by default (Chrome 86)
Intent stage
Prepare to ship

Summary

The async clipboard api currently does not support the text/html format. This feature adds support for copying and pasting html from the clipboard. The HTML is sanitized when it is read and written to the clipboard.

Motivation

The purpose of HTML for Async Clipboard is to provide access to HTML, a format often used to hold rich text and documents. This could be used by: -Web editors, to copy and paste rich text with images and links. -Remote desktop applications, to synchronize text/html payloads across devices. -Sites with clipboard integration, to supersede existing document.execCommand()’s copy and paste functions.

Standards & signals

Docs: https://docs.google.com/document/d/1tzjfckWUKAAxEbKcUjg21uz7LFDMQ7ZDzfTTj3Lp93Y/

Samples: https://hyper-silly-cross.glitch.me/

Explainers: I don't have an explainer because this is a small feature. We are trying to reach feature parity with webkit which has already implemented this feature.

View on chromestatus.com