From db26cf86829f9b43d29f18b9bbf197e9e2d55c31 Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 14 Apr 2021 00:11:31 +0000 Subject: [CRON] sync translated content --- files/fr/_redirects.txt | 1 + files/fr/_wikihistory.json | 20 ++--- .../web/api/parentnode/children/index.html | 90 ++++++++++++++++++++++ files/fr/web/api/parentnode/children/index.html | 89 --------------------- 4 files changed, 101 insertions(+), 99 deletions(-) create mode 100644 files/fr/orphaned/web/api/parentnode/children/index.html delete mode 100644 files/fr/web/api/parentnode/children/index.html (limited to 'files/fr') diff --git a/files/fr/_redirects.txt b/files/fr/_redirects.txt index f956671d39..08f6d17707 100644 --- a/files/fr/_redirects.txt +++ b/files/fr/_redirects.txt @@ -3800,6 +3800,7 @@ /fr/docs/Web/API/Node/prefix /fr/docs/conflicting/Web/API/Element/prefix /fr/docs/Web/API/Node/rootNode /fr/docs/conflicting/Web/API/Node/getRootNode /fr/docs/Web/API/ParentNode/childElementCount /fr/docs/Web/API/Element/childElementCount +/fr/docs/Web/API/ParentNode/children /fr/docs/orphaned/Web/API/ParentNode/children /fr/docs/Web/API/PasswordCredential/additionalData /fr/docs/conflicting/Web/API/PasswordCredential /fr/docs/Web/API/PasswordCredential/idName /fr/docs/conflicting/Web/API/PasswordCredential_cbf7b306e83a3f58ff06bccf89637c12 /fr/docs/Web/API/PasswordCredential/passwordName /fr/docs/conflicting/Web/API/PasswordCredential_bc57d5dfa87242b4fb83497887124f41 diff --git a/files/fr/_wikihistory.json b/files/fr/_wikihistory.json index c66afaeeff..7691f6cf76 100644 --- a/files/fr/_wikihistory.json +++ b/files/fr/_wikihistory.json @@ -11700,16 +11700,6 @@ "ayshiff" ] }, - "Web/API/ParentNode/children": { - "modified": "2020-10-15T21:43:07.206Z", - "contributors": [ - "Arzak656", - "jMoulis", - "loella16", - "NemoNobobyPersonne", - "xavierartot" - ] - }, "Web/API/ParentNode/firstElementChild": { "modified": "2019-03-23T23:35:50.443Z", "contributors": [ @@ -45335,5 +45325,15 @@ "xavierartot", "vava" ] + }, + "orphaned/Web/API/ParentNode/children": { + "modified": "2020-10-15T21:43:07.206Z", + "contributors": [ + "Arzak656", + "jMoulis", + "loella16", + "NemoNobobyPersonne", + "xavierartot" + ] } } \ No newline at end of file diff --git a/files/fr/orphaned/web/api/parentnode/children/index.html b/files/fr/orphaned/web/api/parentnode/children/index.html new file mode 100644 index 0000000000..7fed7973ec --- /dev/null +++ b/files/fr/orphaned/web/api/parentnode/children/index.html @@ -0,0 +1,90 @@ +--- +title: ParentNode.children +slug: orphaned/Web/API/ParentNode/children +tags: + - API + - DOM + - Noeuds + - Propriétés + - parent +translation_of: Web/API/ParentNode/children +original_slug: Web/API/ParentNode/children +--- +

{{ APIRef("DOM") }}

+ +

La propriété children de {{domxref("ParentNode")}} est une propriété en lecture seule qui renvoie une {{domxref("HTMLCollection")}} directe contenant tous les enfants {{domxref("Element","éléments")}} du noeud sur lequel elle a été appelée.

+ +

Syntaxe

+ +
var children = node.children;
+ +

Valeur

+ +

Une {{ domxref("HTMLCollection") }}, qui est une collection directe et ordonnée des éléments DOM qui sont enfants du node (noeud). Vous pouvez accéder aux noeuds enfants individuellement en utilisant la méthode  {{domxref("HTMLCollection.item", "item()")}} (élément) sur la collection ou en utilisant la notation de type tableau (array) de JavaScript.

+ +

S'il n'y a pas d'éléments enfants, alors children est une liste vide et a une length (longueur) de 0.

+ +

Exemple

+ +
var machin = document.getElementById('machin');
+for (var i = 0; i < machin.children.length; i++) {
+    console.log(machin.children[i].tagName);
+}
+ +

Polyfill

+ +
// Réécrit le prototype 'children' natif.
+// Ajoute le support de Document & DocumentFragment pour IE9 & Safari.
+// Renvoie un tableau (array) au lieu d'une HTMLCollection.
+;(function(constructeur) {
+    if (constructeur &&
+        constructeur.prototype &&
+        constructeur.prototype.children == null) {
+        Object.defineProperty(constructeur.prototype, 'children', {
+            get: function() {
+                var i = 0, noeud, noeuds = this.childNodes, children = [];
+                while (noeud = noeuds[i++]) {
+                    if (noeud.nodeType === 1) {
+                        children.push(noeud);
+                    }
+                }
+                return children;
+            }
+        });
+    }
+})(window.Node || window.Element);
+ +

Spécification

+ + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('DOM WHATWG', '#dom-parentnode-children', 'ParentNode.children')}}{{Spec2('DOM WHATWG')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.ParentNode.children")}}

+ +

Voir aussi

+ + diff --git a/files/fr/web/api/parentnode/children/index.html b/files/fr/web/api/parentnode/children/index.html deleted file mode 100644 index 52c529a1b8..0000000000 --- a/files/fr/web/api/parentnode/children/index.html +++ /dev/null @@ -1,89 +0,0 @@ ---- -title: ParentNode.children -slug: Web/API/ParentNode/children -tags: - - API - - DOM - - Noeuds - - Propriétés - - parent -translation_of: Web/API/ParentNode/children ---- -

{{ APIRef("DOM") }}

- -

La propriété children de {{domxref("ParentNode")}} est une propriété en lecture seule qui renvoie une {{domxref("HTMLCollection")}} directe contenant tous les enfants {{domxref("Element","éléments")}} du noeud sur lequel elle a été appelée.

- -

Syntaxe

- -
var children = node.children;
- -

Valeur

- -

Une {{ domxref("HTMLCollection") }}, qui est une collection directe et ordonnée des éléments DOM qui sont enfants du node (noeud). Vous pouvez accéder aux noeuds enfants individuellement en utilisant la méthode  {{domxref("HTMLCollection.item", "item()")}} (élément) sur la collection ou en utilisant la notation de type tableau (array) de JavaScript.

- -

S'il n'y a pas d'éléments enfants, alors children est une liste vide et a une length (longueur) de 0.

- -

Exemple

- -
var machin = document.getElementById('machin');
-for (var i = 0; i < machin.children.length; i++) {
-    console.log(machin.children[i].tagName);
-}
- -

Polyfill

- -
// Réécrit le prototype 'children' natif.
-// Ajoute le support de Document & DocumentFragment pour IE9 & Safari.
-// Renvoie un tableau (array) au lieu d'une HTMLCollection.
-;(function(constructeur) {
-    if (constructeur &&
-        constructeur.prototype &&
-        constructeur.prototype.children == null) {
-        Object.defineProperty(constructeur.prototype, 'children', {
-            get: function() {
-                var i = 0, noeud, noeuds = this.childNodes, children = [];
-                while (noeud = noeuds[i++]) {
-                    if (noeud.nodeType === 1) {
-                        children.push(noeud);
-                    }
-                }
-                return children;
-            }
-        });
-    }
-})(window.Node || window.Element);
- -

Spécification

- - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('DOM WHATWG', '#dom-parentnode-children', 'ParentNode.children')}}{{Spec2('DOM WHATWG')}}Définition initiale.
- -

Compatibilité des navigateurs

- - - -

{{Compat("api.ParentNode.children")}}

- -

Voir aussi

- - -- cgit v1.2.3-54-g00ecf