clipboard-apis
clipboard-apis copied to clipboard
read(formats) ambiguous
WRT https://w3c.github.io/clipboard-apis/#dom-clipboard-read
itemsis referenced after it is no longer in scope ("ifitemshas size > 0" comes after the scope of "Letitems[...]"- "Set representation’s data to systemClipboardRepresentation’s data." has a type mismatch, because the former
datais a Promise and the latterdatais a sequence of bytes - The steps in "Else" go 1, 2, 3, 1
- In the text "If customItem’s list of representations size is greater than 0, append item to items.",
itemis undefined AFAICT
I also can't figure out why there are two different places where the algorithm says "Run the read web custom format algorithm", perhaps because the above issues (and others?) are making it difficult to understand the flow.