getSelection
Summary
Returns the current selection in this ShadowRoot’s shadow tree.
Method of dom/shadowdom/ShadowRootdom/shadowdom/ShadowRoot
Syntax
var result = element.getSelection();
Return Value
Returns an object of type DOM NodeDOM Node