aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/url/protocol/index.md
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/url/protocol/index.md
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/url/protocol/index.md')
-rw-r--r--files/fr/web/api/url/protocol/index.md55
1 files changed, 20 insertions, 35 deletions
diff --git a/files/fr/web/api/url/protocol/index.md b/files/fr/web/api/url/protocol/index.md
index a67e867df9..2bc51d5bdc 100644
--- a/files/fr/web/api/url/protocol/index.md
+++ b/files/fr/web/api/url/protocol/index.md
@@ -9,53 +9,38 @@ tags:
- protocole
translation_of: Web/API/URL/protocol
---
-<div>{{ApiRef("URL API")}}</div>
+{{ApiRef("URL API")}}
-<p>La propriété <strong><code>protocol</code></strong> de l'interface {{domxref("URL")}} est une {{domxref("USVString")}} représentant le schéma protocolaire de URL, incluant <code>':'</code> à la fin.</p>
+La propriété **`protocol`** de l'interface {{domxref("URL")}} est une {{domxref("USVString")}} représentant le schéma protocolaire de URL, incluant `':'` à la fin.
-<p>{{AvailableInWorkers}}</p>
+{{AvailableInWorkers}}
-<h2 id="Syntaxe">Syntaxe</h2>
+## Syntaxe
-<pre class="syntaxbox"><em>string</em> = <em>object</em>.protocol;
-<em>object</em>.protocol = <em>string</em>;
-</pre>
+ string = object.protocol;
+ object.protocol = string;
-<h3 id="Valeur">Valeur</h3>
+### Valeur
-<p>Un {{domxref("USVString")}}.</p>
+Un {{domxref("USVString")}}.
-<h2 id="Exemples">Exemples</h2>
+## Exemples
-<pre class="brush: js">var url = new URL('https://developer.mozilla.org/en-US/docs/Web/API/URL/protocol');
+```js
+var url = new URL('https://developer.mozilla.org/en-US/docs/Web/API/URL/protocol');
var result = url.protocol; // Retourne:"https:"
-</pre>
+```
-<h2 id="Spécifications">Spécifications</h2>
+## Spécifications
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Spécification</th>
- <th scope="col">Statut</th>
- <th scope="col">Commentaire</th>
- </tr>
- <tr>
- <td>{{SpecName('URL', '#dom-url-protocol', 'protocol')}}</td>
- <td>{{Spec2('URL')}}</td>
- <td>Définition initiale.</td>
- </tr>
- </tbody>
-</table>
+| Spécification | Statut | Commentaire |
+| -------------------------------------------------------------------- | -------------------- | -------------------- |
+| {{SpecName('URL', '#dom-url-protocol', 'protocol')}} | {{Spec2('URL')}} | Définition initiale. |
-<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
+## Compatibilité des navigateurs
+{{Compat("api.URL.protocol")}}
+## A voir également
-<p>{{Compat("api.URL.protocol")}}</p>
-
-<h2 id="A_voir_également">A voir également</h2>
-
-<ul>
- <li>L'interface {{domxref("URL")}} dont il est contenu.</li>
-</ul>
+- L'interface {{domxref("URL")}} dont il est contenu.