Web platform features explorer

Selection composed ranges

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

Status

Limited availability

Browser support

  • Chrome 137 Released on 2025-05-27
  • Chrome Android 137 Released on 2025-05-27
  • Edge 137 Released on 2025-05-29
  • Firefox Vendor position : positive
  • Firefox for Android Vendor position : positive
  • Safari 17 Released on 2023-09-18
  • Safari on iOS 17 Released on 2023-09-18

Baseline availability blocked since May 2025 by Firefox (2 months)

Usage (according to Chrome Platform Status)

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