Skip to content

Update Range.deleteContents() and Range.extractContents() docs for collapse-before-mutations change #43230

Description

@stevenobiajulu

What information was incorrect, unhelpful, or incomplete?

The DOM spec is being updated to change when Range.deleteContents() and the extract algorithm (used by Range.extractContents()) collapse the range to (newNode, newOffset). The collapse now happens before DOM mutations rather than after, so that the DOM's built-in live range maintenance mechanisms keep the range valid through subsequent operations.

What did you expect to see?

Documentation should reflect that the range is collapsed before mutations are performed, matching the updated spec.

Related

Do you have any interest in resolving this?

No (this is primarily a spec-level change; the observable behavior is the same in current browsers since no removing step currently fires synchronous script).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:WebAPIWeb API docsclosed: wontfixOut of scope, too much effort, or working as intended

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions