webdriver
webdriver copied to clipboard
Definition of "collection" is nonsensical
https://w3c.github.io/webdriver/#dfn-collection
A collection is an Object that implements the Iterable interface, and whose:
- initial value of the toString own property is "Arguments"
- instance of Array
- instance of DOMTokenList
- ...
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
Argumentsobjects do not have atoStringown property. They inherit atoStringproperty 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.