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.
To learn more, see
Selection: getComposedRanges() method at MDN.
Compatibility
- Chrome ❌ Search for bugs Search for Chromestatus entry
- Chrome Android ❌ Search for bugs Search for Chromestatus entry
- Edge ❌ Search for bugs Search for Chromestatus entry
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari 17 Released on 2023-09-18
- Safari on iOS 17 Released on 2023-09-18