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.

activeElement

Summary

Represents the currently focused element in the shadow tree.

Property of dom/shadowdom/ShadowRootdom/shadowdom/ShadowRoot

Syntax

Note: This property is read-only.

var result = element.activeElement;

Return Value

Returns an object of type ElementElement

On getting, the attribute must return the currently focused element in the shadow tree or null, if there is none.