You entering the DOM .... the source to render it as a page and javacript
You get a range on selection events : selection, there is the current target then the selection...
for à read it can help retrieve all selected elements in event data, after manipulating it ?...
At that level you will need the specification...
Ranges (are sub tree within the dom)
It’s abstract definition show the tree of nodes address/structure appearing
https://dom.spec.whatwg.org/#interface-abstractrange
And other related :
https://dom.spec.whatwg.org/#ranges
[DOM-Level-2-Traversal-Range]
Joseph Kesselman; et al. Document Object Model (DOM) Level 2 Traversal and Range Specification. 13 November 2000. REC. URL: https://www.w3.org/TR/DOM-Level-2-Traversal-Range/
That’s it ?