aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/navigator
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/navigator
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/navigator')
-rw-r--r--files/fr/web/api/navigator/battery/index.html4
-rw-r--r--files/fr/web/api/navigator/registerprotocolhandler/index.html2
-rw-r--r--files/fr/web/api/navigator/registerprotocolhandler/web-based_protocol_handlers/index.html6
3 files changed, 5 insertions, 7 deletions
diff --git a/files/fr/web/api/navigator/battery/index.html b/files/fr/web/api/navigator/battery/index.html
index 3eb09b9ab3..59595e4a78 100644
--- a/files/fr/web/api/navigator/battery/index.html
+++ b/files/fr/web/api/navigator/battery/index.html
@@ -64,6 +64,4 @@ updateBatteryStatus();
<ul>
<li><a href="http://hacks.mozilla.org/2012/02/using-the-battery-api-part-of-webapi/">Blog post - Using the Battery API</a></li>
<li><a href="http://davidwalsh.name/battery-api">David Walsh on the Javascript Battery Api</a></li>
-</ul>
-
-<p>{{ languages( {"zh-cn": "zh-cn/DOM/window.navigator.battery" } ) }}</p>
+</ul> \ No newline at end of file
diff --git a/files/fr/web/api/navigator/registerprotocolhandler/index.html b/files/fr/web/api/navigator/registerprotocolhandler/index.html
index 9c9f9bdff7..25df0e4c12 100644
--- a/files/fr/web/api/navigator/registerprotocolhandler/index.html
+++ b/files/fr/web/api/navigator/registerprotocolhandler/index.html
@@ -26,7 +26,7 @@ translation_of: Web/API/Navigator/registerProtocolHandler
<h3 id="Exemple">Exemple</h3>
-<p>Si votre application web est située à http://www.example.com, vous pouvez enregistrer un gestionnaire de protocole lui permettant de gérer « mailto » comme ceci :</p>
+<p>Si votre application web est située à <code>http://www.example.com</code>, vous pouvez enregistrer un gestionnaire de protocole lui permettant de gérer « mailto » comme ceci :</p>
<pre class="eval">navigator.registerProtocolHandler("mailto",
"<a href="https://www.example.com/?to=%s">https://www.example.com/?to=%s</a>",
diff --git a/files/fr/web/api/navigator/registerprotocolhandler/web-based_protocol_handlers/index.html b/files/fr/web/api/navigator/registerprotocolhandler/web-based_protocol_handlers/index.html
index 70b96ec01a..3ab6522963 100644
--- a/files/fr/web/api/navigator/registerprotocolhandler/web-based_protocol_handlers/index.html
+++ b/files/fr/web/api/navigator/registerprotocolhandler/web-based_protocol_handlers/index.html
@@ -41,7 +41,7 @@ translation_of: Web/API/Navigator/registerProtocolHandler/Web-based_protocol_han
<h4 id="Exemple">Exemple</h4>
-<pre>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
+<pre class="brush: html">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
&lt;html lang="fr"&gt;
&lt;head&gt;
&lt;title&gt;Web Protocol Handler Sample - Register&lt;/title&gt;
@@ -62,7 +62,7 @@ translation_of: Web/API/Navigator/registerProtocolHandler/Web-based_protocol_han
<h4 id="Exemple_2">Exemple</h4>
-<pre>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
+<pre class="brush: html">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
&lt;html lang="fr"&gt;
&lt;head&gt;
&lt;title&gt;Exemple de gestionnaire de protocole web — test&lt;/title&gt;
@@ -86,7 +86,7 @@ translation_of: Web/API/Navigator/registerProtocolHandler/Web-based_protocol_han
<h4 id="Exemple_3">Exemple</h4>
-<pre>&lt;?php
+<pre class="brush: html">&lt;?php
$value = "";
if ( isset ( $_GET["value"] ) ) {
$value = $_GET["value"];