Skip to content

Explainer for Multi-Range Selection in Chromium#1311

Merged
dandclark merged 3 commits into
MicrosoftEdge:mainfrom
sambandaru:multi-range-selection
May 19, 2026
Merged

Explainer for Multi-Range Selection in Chromium#1311
dandclark merged 3 commits into
MicrosoftEdge:mainfrom
sambandaru:multi-range-selection

Conversation

@sambandaru
Copy link
Copy Markdown
Contributor

@sambandaru sambandaru commented Apr 30, 2026

Adds an explainer proposing multi-range selection support in W3C Selection API spec. The spec currently mandates that addRange() no-ops when a range already exists (rangeCount capped at 1). This proposes allowing addRange() to accumulate disjoint ranges, enabling Ctrl+Click discontinuous text selection. Chromium is pursuing implementation; Gecko already ships this behavior.

Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
@sambandaru sambandaru force-pushed the multi-range-selection branch 3 times, most recently from c24283b to b8ba5f7 Compare May 13, 2026 12:49
@sambandaru sambandaru force-pushed the multi-range-selection branch 3 times, most recently from 9c8f1de to 13c21d7 Compare May 14, 2026 08:13
@sambandaru sambandaru force-pushed the multi-range-selection branch from 13c21d7 to 3b06b9c Compare May 14, 2026 08:16
Copy link
Copy Markdown
Contributor

@mhochk mhochk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM to get the discussion going. I left a handful of comments but none are blocking. Let me know if/when you want this merged to main.

Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md
Copy link
Copy Markdown
Member

@dandclark dandclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some small things.

Are there any Alternatives Considered that can be added here? One might be adding browser UI that would allow layout selection without updating the DOM APIs. That was done at one point in Edge with the Web Select feature, which has since been removed: https://onlinecomputertips.com/support-categories/windows/enable-web-select-microsoft-edge/

Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
Comment thread Editing/multi-range-selection-explainer.md Outdated
@sambandaru sambandaru force-pushed the multi-range-selection branch from dfc46ea to fcf0e07 Compare May 18, 2026 11:44
@sambandaru
Copy link
Copy Markdown
Contributor Author

@mhochk and @dandclark
Thanks for the review. I have updated the PR.

@sambandaru
Copy link
Copy Markdown
Contributor Author

LGTM with some small things.

Are there any Alternatives Considered that can be added here? One might be adding browser UI that would allow layout selection without updating the DOM APIs. That was done at one point in Edge with the Web Select feature, which has since been removed: https://onlinecomputertips.com/support-categories/windows/enable-web-select-microsoft-edge/

I have added this and custom overlays as considered alternatives.

@sambandaru
Copy link
Copy Markdown
Contributor Author

@mhochk / @dandclark
Could you pls merge if there are no more comments.

@dandclark dandclark merged commit 304a961 into MicrosoftEdge:main May 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants