This was added to spec a while back, but browser vendors are dragging their feet. https://w3c.github.io/selection-api/#dom-selection-getcomposedrange https://bugzilla.mozilla.org/show_bug.cgi?id=1430308 https://bugs.webkit.org/show_bug.cgi?id=163921 I could not find a Chromium bug, I might try and get that added myself.
This was added to spec a while back, but browser vendors are dragging their feet.
https://w3c.github.io/selection-api/#dom-selection-getcomposedrange
https://bugzilla.mozilla.org/show_bug.cgi?id=1430308
https://bugs.webkit.org/show_bug.cgi?id=163921
I could not find a Chromium bug, I might try and get that added myself.