Skip to content

Allow Selection to contain multiple ranges #115

Closed

Description

@IgnacioHR

The current wording and the implementation on current browsers replaces the existing range on the Selection when addRange(...) is called. As a result, only one Range exists on the Selection.

The example here:
https://developer.mozilla.org/en-US/docs/Web/API/Selection/addRange
suggest that the desired behavior is that the Selection could contain an array of Ranges instead of just one Range

I can think on many other use cases such as using javascript for selecting the content of all columns in a table and add them to the Selection and later perform a copy operation... Today this functionality cannot use current selection-api specification.

I would like to see what other people think about this.

Activity

  1. rniwa commented on Jan 22, 2020

    @rniwa
    Contributor

    This is a duplicate of #41.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions