w3c / w3c/edit-context

Should multiple selection ranges be supported?

Open
#120 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
48
Forks
13
PR merge metrics
No merged PRs in 30d

Description

The DOM Selection object supports multiple selection ranges. In Firefox, these can be created by holding the command or ctrl key and performing multiple selections using the mouse.

It looks like the EditContext API supports only a single selection range. Was an intentional decision made to not support multiple selection ranges or was this an oversight? If only a single selection range is supported, how should web applications using EditContext behave if the user selects multiple ranges?

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 reviewing the EditContext API's selection-range model and compare it with the DOM Selection specification linked in the issue. Determine whether multiple ranges are intentionally excluded and how applications should behave when they occur. Done means the API decision and expected application behavior are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.