Skip to content

Definition of "collection" is nonsensical #1886

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

Open
Loirooriol opened this issue Mar 3, 2025 · 0 comments
Open

Definition of "collection" is nonsensical #1886

Loirooriol opened this issue Mar 3, 2025 · 0 comments

Comments

@Loirooriol
Copy link

https://w3c.github.io/webdriver/#dfn-collection

A collection is an Object that implements the Iterable interface, and whose:

Problems:

  • Expressions like "whose [...] instance of Array" are ungrammatical
  • It's unclear whether all conditions of the list must hold, or a single one suffices
  • Arguments objects do not have a toString own property. They inherit a toString property but its value isn't a string, it's a function.
    What this probably meant was Call(%Object.prototype.toString%, collection), but of course this would still consider ({[Symbol.toStringTag]: "Arguments"}) as an Arguments object even if that's not the case.
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