webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

Definition of "collection" is nonsensical

Open Loirooriol opened this issue 9 months ago • 0 comments

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.

Loirooriol avatar Mar 03 '25 23:03 Loirooriol