whatwg / whatwg/html

Clarify what events are expected from <option> elements in <select> dropdowns

Open
#263 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

compat topic: forms
Dominant language
HTML
Stars
9.4k
Forks
3.2k
Avg merge
3d 9h
Merged PRs (30d)
38

Description

The specs for the option element and the select element do not (at least to my reading) make it clear what events are expected from option elements when the select is in dropdown mode (for example, when the is not being used for multiple selections, or when the size of the is 1).

I'm particularly interested in mouse and keyboard events.

The major browsers seem to behave differently. I've highlighted those differences here.

It'd be good if we could hammer out the actual desired behaviour here so that there's less ambiguity in how (if ever) to dispatch events for option elements when in dropdown selects.

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 reading the linked specifications for the option and select elements, then review the browser differences documented in the linked Bugzilla discussion. The work is complete when the expected mouse and keyboard event behavior for option elements in dropdown selects is agreed and the specification is no longer ambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.