[w3c/clipboard-apis] Clarifying `clipboard.readText()` behaviour (Issue #236)

Gae24 created an issue (w3c/clipboard-apis#236)

I found the steps involved in creating a representation to be a bit unclear.

> 3. Let representation be a new [representation](https://w3c.github.io/clipboard-apis/#representation).
> 4. If representation’s [MIME type](https://w3c.github.io/clipboard-apis/#representation-mime-type) [essence](https://mimesniff.spec.whatwg.org/#mime-type-essence) is "text/plain", then:

How can it be "text/plain"? Shouldn't we check the essence of `mimeType`, which is:

> 1. Let mimeType be the result of running the [well-known mime type from os specific format](https://w3c.github.io/clipboard-apis/#well-known-mime-type-from-os-specific-format) algorithm given systemClipboardRepresentation’s [name](https://w3c.github.io/clipboard-apis/#system-clipboard-representation-name).

Lastly what should we actually do with data from clipboard? Spec is not clear about it, currently Servo implementation resolve representation's [data](https://w3c.github.io/clipboard-apis/#representation-data) with it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/236
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/issues/236@github.com>

Received on Monday, 28 April 2025 09:57:48 UTC