aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/element
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/element
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/element')
-rw-r--r--files/fr/web/api/element/releasepointercapture/index.html2
-rw-r--r--files/fr/web/api/element/scrollleft/index.html6
-rw-r--r--files/fr/web/api/element/scrollwidth/index.html3
-rw-r--r--files/fr/web/api/element/select_event/index.html2
-rw-r--r--files/fr/web/api/element/setpointercapture/index.html2
5 files changed, 6 insertions, 9 deletions
diff --git a/files/fr/web/api/element/releasepointercapture/index.html b/files/fr/web/api/element/releasepointercapture/index.html
index 12e2b9c359..22be0475ac 100644
--- a/files/fr/web/api/element/releasepointercapture/index.html
+++ b/files/fr/web/api/element/releasepointercapture/index.html
@@ -33,7 +33,7 @@ translation_of: Web/API/Element/releasePointerCapture
<h2 id="Exemple">Exemple</h2>
-<pre class="brush: js">&lt;html&gt;
+<pre class="brush: html">&lt;html&gt;
&lt;script&gt;
function downHandler(ev) {
var el=document.getElementById("target");
diff --git a/files/fr/web/api/element/scrollleft/index.html b/files/fr/web/api/element/scrollleft/index.html
index 9d22971f19..1d408aae3c 100644
--- a/files/fr/web/api/element/scrollleft/index.html
+++ b/files/fr/web/api/element/scrollleft/index.html
@@ -34,7 +34,7 @@ var <var>sLeft</var> = <var>element</var>.scrollLeft;
<h3 id="Exemple">Exemple</h3>
-<pre>&lt;script type="text/javascript"&gt;
+<pre class="brush: html">&lt;script type="text/javascript"&gt;
function doScrollLeft(el, p)
{
@@ -66,6 +66,4 @@ for (var i=0; i&lt;100; ++i){
<ul>
<li><a href="http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/scrollleft.asp"><em>scrollLeft</em> sur MSDN</a></li>
-</ul>
-
-<p>{{ languages( { "en": "en/DOM/element.scrollLeft", "pl": "pl/DOM/element.scrollLeft" } ) }}</p>
+</ul> \ No newline at end of file
diff --git a/files/fr/web/api/element/scrollwidth/index.html b/files/fr/web/api/element/scrollwidth/index.html
index 99dd56426d..9297b2f417 100644
--- a/files/fr/web/api/element/scrollwidth/index.html
+++ b/files/fr/web/api/element/scrollwidth/index.html
@@ -29,5 +29,4 @@ translation_of: Web/API/Element/scrollWidth
<i>
scrollWidth</i>
sur MSDN</a></li>
-</ul>
-<p>{{ languages( { "en": "en/DOM/element.scrollWidth", "pl": "pl/DOM/element.scrollWidth" } ) }}</p>
+</ul> \ No newline at end of file
diff --git a/files/fr/web/api/element/select_event/index.html b/files/fr/web/api/element/select_event/index.html
index 4f6d4d2259..f0be06d15b 100644
--- a/files/fr/web/api/element/select_event/index.html
+++ b/files/fr/web/api/element/select_event/index.html
@@ -68,7 +68,7 @@ translation_of: Web/API/Element/select_event
<h2 id="Example">Exemple</h2>
-<pre class="brush: js">&lt;input id="test" type="text" value="Sélectionnez-moi !" /&gt;
+<pre class="brush: html">&lt;input id="test" type="text" value="Sélectionnez-moi !" /&gt;
&lt;script&gt;
  var elem = document.getElementById('test');
  elem.addEventListener('select', function() {
diff --git a/files/fr/web/api/element/setpointercapture/index.html b/files/fr/web/api/element/setpointercapture/index.html
index fe8eb2deb9..a412900e39 100644
--- a/files/fr/web/api/element/setpointercapture/index.html
+++ b/files/fr/web/api/element/setpointercapture/index.html
@@ -38,7 +38,7 @@ translation_of: Web/API/Element/setPointerCapture
<h2 id="Exemple">Exemple</h2>
-<pre class="brush: js">&lt;html&gt;
+<pre class="brush: html">&lt;html&gt;
&lt;script&gt;
function downHandler(ev) {
var el=document.getElementById("target");