This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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