From 1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:24 +0200 Subject: convert content to md --- files/fr/web/api/node/lastchild/index.md | 64 ++++++++++---------------------- 1 file changed, 20 insertions(+), 44 deletions(-) (limited to 'files/fr/web/api/node/lastchild/index.md') diff --git a/files/fr/web/api/node/lastchild/index.md b/files/fr/web/api/node/lastchild/index.md index 37963f8473..a44709a33d 100644 --- a/files/fr/web/api/node/lastchild/index.md +++ b/files/fr/web/api/node/lastchild/index.md @@ -9,58 +9,34 @@ tags: - Propriétés translation_of: Web/API/Node/lastChild --- -

{{APIRef("DOM")}}

+{{APIRef("DOM")}} -

La propriété en lecture seule Node.lastChild renvoie le dernier enfant du noeud. Si son parent est un élément, l'enfant est généralement un noeud élément, texte ou commentaire. Elle renvoie null s'il n'y a aucun enfant.

+La propriété en lecture seule** \*\***`Node.lastChild`\*\* renvoie le dernier enfant du noeud. Si son parent est un élément, l'enfant est généralement un noeud élément, texte ou commentaire. Elle renvoie `null` s'il n'y a aucun enfant. -

Syntaxe

+## Syntaxe -
var childNode = node.lastChild;
-
+ var childNode = node.lastChild; -

 

-

Exemple

-

 

+## Exemple -
var tr = document.getElementById("row1");
-var corner_td = tr.lastChild;
-

Spécification

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('DOM WHATWG', '#dom-node-lastchild', 'Node.lastChild')}}{{Spec2('DOM WHATWG')}}Pas de changement
{{SpecName('DOM3 Core', 'core.html#ID-61AD09FB', 'Node.lastChild')}}{{Spec2('DOM3 Core')}}Pas de changement
{{SpecName('DOM2 Core', 'core.html#ID-61AD09FB', 'Node.lastChild')}}{{Spec2('DOM2 Core')}}Pas de changement
{{SpecName('DOM1', 'level-one-core.html#ID-61AD09FB', 'Node.lastChild')}}{{Spec2('DOM1')}}Définition initiale
+```js +var tr = document.getElementById("row1"); +var corner_td = tr.lastChild; +``` -

Compatibilité des navigateurs

+## Spécification -

{{Compat("api.Node.lastChild")}}

\ No newline at end of file +| Spécification | Statut | Commentaire | +| ------------------------------------------------------------------------------------------------ | -------------------------------- | ------------------- | +| {{SpecName('DOM WHATWG', '#dom-node-lastchild', 'Node.lastChild')}} | {{Spec2('DOM WHATWG')}} | Pas de changement | +| {{SpecName('DOM3 Core', 'core.html#ID-61AD09FB', 'Node.lastChild')}} | {{Spec2('DOM3 Core')}} | Pas de changement | +| {{SpecName('DOM2 Core', 'core.html#ID-61AD09FB', 'Node.lastChild')}} | {{Spec2('DOM2 Core')}} | Pas de changement | +| {{SpecName('DOM1', 'level-one-core.html#ID-61AD09FB', 'Node.lastChild')}} | {{Spec2('DOM1')}} | Définition initiale | + +## Compatibilité des navigateurs + +{{Compat("api.Node.lastChild")}} -- cgit v1.2.3-54-g00ecf