A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus below:

ShadowRoot: delegatesFocus property - Web APIs

In this article Value

true if the shadow root delegates focus, and false otherwise.

Examples
const customElem = document.querySelector("my-shadow-dom-element");
const shadow = customElem.shadowRoot;

// …

// Does it delegate focus?
const hostElem = shadow.delegatesFocus;

The Declarative Shadow DOM with delegated focus example in the <template> documentation demonstrates the effects of delegating focus.

Specifications Browser compatibility

Loading…


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.5