w3c / w3c/webdriver

Definition of "collection" is nonsensical

Open
#1,886 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Execute Async Script Execute Script
Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the WebDriver specification's collection definition linked in the issue, then review the referenced definitions for Object, Iterable, initial value, own properties, Array, and DOMTokenList. Clarify the list's grammar and intended conditions, and verify the Arguments-object wording against the linked ECMAScript Call definition; done when the definition is precise and unambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.