aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/node
diff options
context:
space:
mode:
authorSphinxKnight <SphinxKnight@users.noreply.github.com>2021-09-27 19:52:26 +0200
committerGitHub <noreply@github.com>2021-09-27 19:52:26 +0200
commitb57379257281efd293e51237969a8553a7c58ae7 (patch)
tree37d1e1dee8f3ab8a5e4d953d121f80f647a94b5e /files/fr/web/api/node
parentf139538f3148990f7b61d94f75d96381985a0c0e (diff)
downloadtranslated-content-b57379257281efd293e51237969a8553a7c58ae7.tar.gz
translated-content-b57379257281efd293e51237969a8553a7c58ae7.tar.bz2
translated-content-b57379257281efd293e51237969a8553a7c58ae7.zip
Fix web api fr upstream h2m (#2597)
* fix html examples with script * remove languages macro * enclose code words in <code> to avoid dot escape
Diffstat (limited to 'files/fr/web/api/node')
-rw-r--r--files/fr/web/api/node/firstchild/index.html4
-rw-r--r--files/fr/web/api/node/normalize/index.html4
2 files changed, 3 insertions, 5 deletions
diff --git a/files/fr/web/api/node/firstchild/index.html b/files/fr/web/api/node/firstchild/index.html
index 3c846498af..03550acf9f 100644
--- a/files/fr/web/api/node/firstchild/index.html
+++ b/files/fr/web/api/node/firstchild/index.html
@@ -21,7 +21,7 @@ translation_of: Web/API/Node/firstChild
<p>Cet exemple montre l'utilisation de <code>firstChild</code> et la manière dont les nœuds d'espaces peuvent interférer.</p>
-<pre>&lt;p id="para-01"&gt;
+<pre class="brush: html">&lt;p id="para-01"&gt;
&lt;span&gt;Premier span&lt;/span&gt;
&lt;/p&gt;
@@ -37,7 +37,7 @@ translation_of: Web/API/Node/firstChild
<p>Si ces espaces sont retirés du code source, les nœuds <code>#text</code> n'apparaîtront plus et l'élément span deviendra le premier enfant du paragraphe.</p>
-<pre>&lt;p id="para-01"&gt;&lt;span&gt;Premier span&lt;/span&gt;&lt;/p&gt;
+<pre class="brush: html">&lt;p id="para-01"&gt;&lt;span&gt;Premier span&lt;/span&gt;&lt;/p&gt;
&lt;script type="text/javascript"&gt;
var p01 = document.getElementById('para-01');
diff --git a/files/fr/web/api/node/normalize/index.html b/files/fr/web/api/node/normalize/index.html
index e7ca55ed31..c1a299fb15 100644
--- a/files/fr/web/api/node/normalize/index.html
+++ b/files/fr/web/api/node/normalize/index.html
@@ -35,6 +35,4 @@ conteneur.normalize();
<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>
-
-<p>{{ languages( { "en": "en/DOM/element.normalize", "pl": "pl/DOM/element.normalize" } ) }}</p>
+</ul> \ No newline at end of file