diff options
author | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-09-27 19:52:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 19:52:26 +0200 |
commit | b57379257281efd293e51237969a8553a7c58ae7 (patch) | |
tree | 37d1e1dee8f3ab8a5e4d953d121f80f647a94b5e /files/fr/web/api/element | |
parent | f139538f3148990f7b61d94f75d96381985a0c0e (diff) | |
download | translated-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')
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"><html> +<pre class="brush: html"><html> <script> 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><script type="text/javascript"> +<pre class="brush: html"><script type="text/javascript"> function doScrollLeft(el, p) { @@ -66,6 +66,4 @@ for (var i=0; i<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"><input id="test" type="text" value="Sélectionnez-moi !" /> +<pre class="brush: html"><input id="test" type="text" value="Sélectionnez-moi !" /> <script> 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"><html> +<pre class="brush: html"><html> <script> function downHandler(ev) { var el=document.getElementById("target"); |