Selection composed ranges
Limited availability
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
- 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 (1 months)
Usage (according to Chrome Platform Status)
~0.001% of page loads. More data at chromestatus.
Specifications
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature