diff options
author | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-09-26 13:11:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 13:11:47 +0200 |
commit | 6772831200d14c2436aea2d0c837f40dbf12156f (patch) | |
tree | e41b587ce1834baf8c737454c0ae110ebc8208ca /files/fr/web/api/document/readystate/index.html | |
parent | 707941dbecfb0cc1e75dd32d2dacac4d1845bf2c (diff) | |
download | translated-content-6772831200d14c2436aea2d0c837f40dbf12156f.tar.gz translated-content-6772831200d14c2436aea2d0c837f40dbf12156f.tar.bz2 translated-content-6772831200d14c2436aea2d0c837f40dbf12156f.zip |
Prepare Web API section for Markdown conversion (#2464)
* Remove summary classes and ids
* Remove unecessary hidden
* Remove useless span filled with useless attributes / ids
* Remove useless font
* Remove notranslate
* Remove id in other elements than headings
* Remove name attributes
* Remove <pre><code> for JS w/ language-js class
* Remove <pre><code> for HTML w/ language-html class
* Remove <pre><code> for other lang w/ language-* class
* Rm highlighted line in code samples
* fix links, internal, external, absolute URLs
* missing file from last commit
* Fix styles errors apart from table + some classes
* Fix notes and warnings (+ some other :x)
* fix typo during merge which broke a doc
* aand forgot a conflict
* fix remaining classes of errors except dls and images
* Fix dls
* Fix images (deki/mozillademos) and remaining style issues
* Remove script tag from svg file
* Remove script tag from svg fileS
* Compress SVG files for CI
Diffstat (limited to 'files/fr/web/api/document/readystate/index.html')
-rw-r--r-- | files/fr/web/api/document/readystate/index.html | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/files/fr/web/api/document/readystate/index.html b/files/fr/web/api/document/readystate/index.html index 57f7b28538..36d01f7c11 100644 --- a/files/fr/web/api/document/readystate/index.html +++ b/files/fr/web/api/document/readystate/index.html @@ -16,7 +16,7 @@ translation_of: Web/API/Document/readyState <h2 id="Syntaxe">Syntaxe</h2> -<pre class="syntaxbox notranslate">var <var>string</var> = <var>document</var>.readyState; +<pre class="syntaxbox">var <var>string</var> = <var>document</var>.readyState; </pre> <h3 id="Valeurs">Valeurs</h3> @@ -32,11 +32,11 @@ translation_of: Web/API/Document/readyState <dd>Le document et toutes les sous-ressources ont été chargés, et {{event("load")}} a été émis.</dd> </dl> -<h2 id="Exemples"><span>Exemples</span></h2> +<h2 id="Exemples">Exemples</h2> <h3 id="Différents_états_de_chargement">Différents états de chargement</h3> -<pre class="brush: js notranslate"><span>switch (document.readyState) { +<pre class="brush: js">switch (document.readyState) { case "loading": // Encore en chargement. break; @@ -50,12 +50,12 @@ translation_of: Web/API/Document/readyState // La page est pleinement chargée. console.log("The first CSS rule is: " + document.styleSheets[0].cssRules[0].cssText); break; -}</span> +} </pre> <h3 id="readystatechange_comme_alternative_à_DOMContentLoaded">readystatechange comme alternative à DOMContentLoaded</h3> -<pre class="brush:js notranslate">// alternative à DOMContentLoaded +<pre class="brush:js">// alternative à DOMContentLoaded document.onreadystatechange = function () { if (document.readyState == "interactive") { initApplication(); @@ -64,7 +64,7 @@ document.onreadystatechange = function () { <h3 id="readystatechange_comme_alternative_à_load">readystatechange comme alternative à load</h3> -<pre class="brush: js notranslate">// alternative à load +<pre class="brush: js">// alternative à load document.onreadystatechange = function () { if (document.readyState == "complete") { initApplication(); @@ -73,7 +73,7 @@ document.onreadystatechange = function () { <h3 id="readystatechange_comme_event_listener_pour_insérer_ou_modifier_le_DOM_avant_DOMContentLoaded">readystatechange comme event listener pour insérer ou modifier le DOM avant DOMContentLoaded</h3> -<pre class="brush: js notranslate">// Modification du document <body> dès que possible en utilisant un script externe +<pre class="brush: js">// Modification du document <body> dès que possible en utilisant un script externe var bootstrap = function(evt){ if (evt.target.readyState === "interactive") { initLoader(); } else if (evt.target.readyState === "complete") { initApp(); } @@ -83,7 +83,7 @@ document.addEventListener('readystatechange', bootstrap, false); <h2 id="Spécifications">Spécifications</h2> -<table class="spectable standard-table"> +<table class="standard-table"> <tbody> <tr> <th scope="col">Spécifications</th> @@ -110,12 +110,8 @@ document.addEventListener('readystatechange', bootstrap, false); <h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> - - <div>{{Compat("api.Document.readyState")}}</div> -<div id="compat-desktop"></div> - <p>[1] Ne supporte que 'complete'. Opera Presto notifie 'complete' seulement après l'événement 'load' (dans un ordre incorrect par rapport à la spécification du standard HTML5).</p> <p>[2] Internet Explorer 9 et 10 ont des bogues quand l'état 'interactive' <a href="https://bugs.jquery.com/ticket/12282">peut être notifié trop tôt</a> avant que le document soit entièrement analysé.</p> |