aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/node/normalize
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-10-02 17:20:24 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-02 17:30:20 +0200
commit1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde (patch)
tree30a56efd3eff3a01bd1611e1840fdbbfacf544a4 /files/fr/web/api/node/normalize
parentc05efa8d7ae464235cf83d7c0956e42dc6974103 (diff)
downloadtranslated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.tar.gz
translated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.tar.bz2
translated-content-1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde.zip
convert content to md
Diffstat (limited to 'files/fr/web/api/node/normalize')
-rw-r--r--files/fr/web/api/node/normalize/index.md27
1 files changed, 13 insertions, 14 deletions
diff --git a/files/fr/web/api/node/normalize/index.md b/files/fr/web/api/node/normalize/index.md
index c1a299fb15..4864a1278a 100644
--- a/files/fr/web/api/node/normalize/index.md
+++ b/files/fr/web/api/node/normalize/index.md
@@ -3,20 +3,20 @@ title: element.normalize
slug: Web/API/Node/normalize
translation_of: Web/API/Node/normalize
---
-<p>{{ ApiRef("DOM") }}</p>
+{{ ApiRef("DOM") }}
-<h2 id="R.C3.A9sum.C3.A9">Résumé</h2>
+## Résumé
-<p>Place le nœud spécifié et tout son sous-arbre dans une forme « normale ». Dans un sous-arbre normalisé, aucun nœud texte n'est vide et il n'y a pas de nœuds texte adjacents.</p>
+Place le nœud spécifié et tout son sous-arbre dans une forme « normale ». Dans un sous-arbre normalisé, aucun nœud texte n'est vide et il n'y a pas de nœuds texte adjacents.
-<h2 id="Syntaxe">Syntaxe</h2>
+## Syntaxe
-<pre class="eval"><em>élément</em>.normalize();
-</pre>
+ élément.normalize();
-<h2 id="Exemple">Exemple</h2>
+## Exemple
-<pre class="brush:js">var conteneur = document.createElement("div");
+```js
+var conteneur = document.createElement("div");
conteneur.appendChild( document.createTextNode("Partie 1 ") );
conteneu.appendChild( document.createTextNode("Partie 2 ") );
@@ -27,12 +27,11 @@ conteneu.appendChild( document.createTextNode("Partie 2 ") );
conteneur.normalize();
// À présent, conteneur.childNodes.length === 1
-// conteneur.childNodes[0].textContent === "Partie 1 Partie 2 "</pre>
+// conteneur.childNodes[0].textContent === "Partie 1 Partie 2 "
+```
-<h2 id="Notes">Notes</h2>
+## Notes
-<h2 id="Sp.C3.A9cification">Spécification</h2>
+## Spécification
-<ul>
- <li><a href="http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-normalize">DOM Level 2 Core: Node.normalize (en)</a> <small>— <a href="http://www.yoyodesign.org/doc/w3c/dom2-core/core.html#ID-normalize">traduction en français</a> (non normative)</small></li>
-</ul> \ No newline at end of file
+- [DOM Level 2 Core: Node.normalize (en)](http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-normalize) — [traduction en français](http://www.yoyodesign.org/doc/w3c/dom2-core/core.html#ID-normalize) (non normative)