Web platform features explorer

Selection composed ranges

Limited availability
Tags: api Groups: Selection Web Components

The window.getSelection().getComposedRanges() method returns ranges that represent the current user selection, even if the selection spans across shadow tree boundaries.

Learning resources on MDN

Browser support

Usage (according to Chrome Platform Status)

~0.000% of page loads. More data at chromestatus.