W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

[clipboard] Clipboard API Mandatory Data Types

From: Ben Peters <ben.peters@microsoft.com>
Date: Tue, 24 Jun 2014 22:37:40 -0700
Message-ID: <CAB5PDwwCLFU5An7DQdWEvr4HgVcJh2xenxtZCJAzgZ99uujs8w@mail.gmail.com>
To: public-webapps@w3.org
The Clipboard API spec has a section on Mandatory Data Types [1]. It
says "The implementation must recognise the native OS clipboard format
description for the following data types", and contains a list of 14
mime types. Most of them have clear purposes, but a few seem arbitrary
to me. Since I haven't been around the group long enough to know all
the history, can someone help me clear these up?

text/uri-list :
This seems like a Windows specific data type. Does Mac or Linux have a
"OS clipboard format description" for this?

text/css, application/javascript, application/json :
What is the use case here? Why would there be code on the clipboard in
it's own format instead of just text/plain that happened to be code?

Separately, do we want to apply this to Drag and Drop as well?


[1] http://www.w3.org/TR/clipboard-apis/#mandatory-data-types-1
Received on Wednesday, 25 June 2014 05:38:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:25 UTC