From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/api/shadowroot/delegatesfocus/index.html | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 files/fr/web/api/shadowroot/delegatesfocus/index.html (limited to 'files/fr/web/api/shadowroot/delegatesfocus') diff --git a/files/fr/web/api/shadowroot/delegatesfocus/index.html b/files/fr/web/api/shadowroot/delegatesfocus/index.html new file mode 100644 index 0000000000..91fd580c39 --- /dev/null +++ b/files/fr/web/api/shadowroot/delegatesfocus/index.html @@ -0,0 +1,46 @@ +--- +title: ShadowRoot.delegatesFocus +slug: Web/API/ShadowRoot/delegatesFocus +tags: + - API + - Non-standard + - Propriété + - Reference + - ShadowRoot +translation_of: Web/API/ShadowRoot/delegatesFocus +--- +
{{APIRef("Shadow DOM")}}
+ +

delegatesFocus est une propriété en lecture seule, rattachée à l'interface {{domxref("ShadowRoot")}} et qui renvoie un booléen indiquant si l'option delegatesFocus a été intialisée lors de l'attachement de la racine shadow (cf. {{domxref("Element.attachShadow()")}}).

+ +
+

Attention ! Cette fonctionnalité est expérimentale, non-standard et uniquement disponible dans Chrome.

+
+ +

Syntaxe

+ +
var df = shadowRoot.delegatesFocus
+ +

Valeur

+ +

Un booléen : true si la racine shadow délègue la gestion du focus et false sinon.

+ +

Exemples

+ +
let customElem = document.querySelector('mon-element-shadow-dom');
+let shadow = customElem.shadowRoot;
+
+  ...
+
+// Est-ce que la racine gère la délégation du focus ?
+let hostElem = shadow.delegatesFocus;
+ +

Spécifications

+ +

Cette fonctionnalité n'est actuellement décrite dans aucune spécification.

+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.ShadowRoot.delegatesFocus")}}

-- cgit v1.2.3-54-g00ecf