- From: Evan Stade <notifications@github.com>
- Date: Fri, 12 Jan 2024 12:29:48 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 12 January 2024 20:29:55 UTC
WRT https://w3c.github.io/clipboard-apis/#dom-clipboard-read 1. `items` is referenced after it is no longer in scope ("if `items` has size > 0" comes after the scope of "Let `items` [...]" 2. "Set representation’s [data](https://w3c.github.io/clipboard-apis/#representation-data) to systemClipboardRepresentation’s [data](https://w3c.github.io/clipboard-apis/#system-clipboard-representation-data)." has a type mismatch, because the former `data` is a Promise and the latter `data` is a sequence of bytes 3. The steps in "Else" go 1, 2, 3, 1 4. In the text "If customItem’s [list of representations](https://w3c.github.io/clipboard-apis/#list-of-representations) size is greater than 0, append item to items.", `item` is undefined AFAICT I also can't figure out why there are two different places where the algorithm says "Run the [read web custom format](https://w3c.github.io/clipboard-apis/#read-web-custom-format) algorithm", perhaps because the above issues (and others?) are making it difficult to understand the flow. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/209 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/issues/209@github.com>
Received on Friday, 12 January 2024 20:29:55 UTC