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 ❌
- Chrome Android ❌
- Edge ❌
- 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