w3c / w3c/webdriver

Clearing input cancel list in Element Send Keys

Open
#1,809 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Element Send Keys
Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

Element Send Keys details the following steps:

  1. Let source be the result of create an input source with input state, and "key".
  1. Add an input source with input state, input id and source.
  1. Dispatch actions for a string with arguments input state, input id, and source, text, and session's current browsing context.
  1. Remove an input source with input state and input id.

Dispatch actions for a string then eventually dispatches keyDown actions, which in dispatch tick actions says:

If subtype is "keyDown", append a copy of action object with the subtype property changed to "keyUp" to input state’s input cancel list.

Once that is done we arrive at step 14 in Element Send Keys: Remove an input source. This says:

Assert: None of the items in input state's input cancel list has id equal to input id.

But I can't find the place in the spec where the input cancel list should be cleared: the only reference to clearing the input cancel list is in Release Actions.

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 by tracing the cited WebDriver sections: Element Send Keys, Dispatch actions for a string, dispatch tick actions, Remove an input source, and Release Actions. Compare their input cancel list requirements and determine whether the specification identifies a clearing step. Done means the specification's lifecycle is consistent and the missing behavior or assertion is explicitly resolved.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.