Skip to content

Add OpaqueRange disconnect() method#57954

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-2c13d49188
Feb 20, 2026
Merged

Add OpaqueRange disconnect() method#57954
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-2c13d49188

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

Implement disconnect() per WHATWG DOM spec PR #1404 [0]. Detaches the
range from its element, stopping live offset updates and zeroing
offsets. Calling it multiple times is safe and has no additional effect.

Adds WPT tests covering disconnect behavior.

Automatic disconnection when the element is removed from the tree or
changes type will be handled in a follow-up CL.

[0] whatwg/dom#1404 (comment)

Low-Coverage-Reason: COVERAGE_UNDERREPORTED
Bug: 421421332
Change-Id: I6f0bb55d57f1eb1876779faad018a19d23b1d665
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7595177
Reviewed-by: Dan Clark <daniec@microsoft.com>
Commit-Queue: Stephanie Zhang <stephanie.zhang@microsoft.com>
Reviewed-by: Ana Sollano Kim <ansollan@microsoft.com>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1588113}

Implement disconnect() per WHATWG DOM spec PR #1404 [0]. Detaches the
range from its element, stopping live offset updates and zeroing
offsets. Calling it multiple times is safe and has no additional effect.

Adds WPT tests covering disconnect behavior.

Automatic disconnection when the element is removed from the tree or
changes type will be handled in a follow-up CL.

[0] whatwg/dom#1404 (comment)

Low-Coverage-Reason: COVERAGE_UNDERREPORTED
Bug: 421421332
Change-Id: I6f0bb55d57f1eb1876779faad018a19d23b1d665
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7595177
Reviewed-by: Dan Clark <daniec@microsoft.com>
Commit-Queue: Stephanie Zhang <stephanie.zhang@microsoft.com>
Reviewed-by: Ana Sollano Kim <ansollan@microsoft.com>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1588113}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 60a655b into master Feb 20, 2026
17 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-2c13d49188 branch February 20, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants