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/htmlcontentelement/select/index.html | 101 +++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 files/fr/web/api/htmlcontentelement/select/index.html (limited to 'files/fr/web/api/htmlcontentelement/select') diff --git a/files/fr/web/api/htmlcontentelement/select/index.html b/files/fr/web/api/htmlcontentelement/select/index.html new file mode 100644 index 0000000000..c6cdfd1230 --- /dev/null +++ b/files/fr/web/api/htmlcontentelement/select/index.html @@ -0,0 +1,101 @@ +--- +title: HTMLContentElement.select +slug: Web/API/HTMLContentElement/select +tags: + - API + - HTML DOM + - Property + - Référence(2) + - Web Components +translation_of: Web/API/HTMLContentElement/select +--- +

{{ APIRef("Web Components") }}

+ +

La propriété HTMLContentElement.select represente l'attribut select. La valeur de retour est une liste de sélecteurs CSS séparés par des espaces. Ils récupèrent le contenu à inserer à la place de l'élément <content>.

+ +

Syntaxe

+ +
object.select = "CSSselector CSSselector ...";
+
+ +

Exemple

+ +
// Choisi les éléments <h1> et les elements avec la class "error"
+myContentObject.select = "h1 .error";
+ +

Spécifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Shadow DOM', '#the-content-element', 'content')}}{{Spec2('Shadow DOM')}} 
+ +

Compatibilité des navigateurs

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FonctionnalitéChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Support de base35{{CompatGeckoDesktop("28")}} [1]{{CompatNo}}26{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FonctionnalitéAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Support de base37{{CompatGeckoMobile("28")}} [1]{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +

[1] Si Shadow DOM n'est pas activé sur Firefox, les élements <content> agiront comme des  {{domxref("HTMLUnknownElement")}}. Les Shadow DOM ont été ajoutés à Firefox 28 et sont derrière une configuration dom.webcomponents.enabled, qui est désactivée par défaut.

+ +
+
Voir également
+
+ + -- cgit v1.2.3-54-g00ecf