Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read(formats) ambiguous #209

Open
evanstade opened this issue Jan 12, 2024 · 0 comments
Open

read(formats) ambiguous #209

evanstade opened this issue Jan 12, 2024 · 0 comments

Comments

@evanstade
Copy link

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 to systemClipboardRepresentation’s 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 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 algorithm", perhaps because the above issues (and others?) are making it difficult to understand the flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant