w3c / w3c/webdriver

Allow disabled input=file element from Element Click algorithm?

Open
#1,666 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

https://w3c.github.io/webdriver/#element-click

If the element is an input element in the file upload state return error with error code invalid argument.

Looks like this is because it can open a picker, but per the spec the picker must not open if the element is disabled. Can we allow such disabled elements here?

(Context: https://github.com/web-platform-tests/wpt/pull/32381/files#diff-3f6dc3c96bfa289d88d82b72938b4822278bb0a5fbde07d002acb7266cae9aa1R42)

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 with the WebDriver Element Click algorithm and compare its file-upload-state rule with the HTML file upload state activation behavior linked in the issue. Review the referenced web-platform-tests pull request for the affected case. Done means the specification and relevant behavior consistently allow a disabled file input without opening a picker.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.