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/htmliframeelement | |
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/htmliframeelement')
4 files changed, 9 insertions, 9 deletions
diff --git a/files/fr/web/api/htmliframeelement/contentdocument/index.html b/files/fr/web/api/htmliframeelement/contentdocument/index.html index 7b9d4c9a8e..5580e0abc8 100644 --- a/files/fr/web/api/htmliframeelement/contentdocument/index.html +++ b/files/fr/web/api/htmliframeelement/contentdocument/index.html @@ -4,7 +4,7 @@ slug: Web/API/HTMLIFrameElement/contentDocument browser-compat: api.HTMLIFrameElement.contentDocument translation_of: 'HTMLIFrameElement.contentDocument' --- -<p>Si l'<i lang="en">iframe</i> et le document parent de l'<i lang="en">iframe</i> sont de la <a href="/fr/docs/Web/Security/Same-origin_policy">même origine</a>, <code>HTMLIFrameElement.contentDocument</code> retourne un <a href="/fr/docs/Web/API/Document" title="L'interface « Document » représente toute page web chargée dans le navigateur en tant que point d'entrée dans le contenu de la page, à savoir l'arbre DOM."><code>Document</code></a> (c'est à dire le document actif dans le contexte de navigation imbriqué du cadre). Sinon, il retourne <code>null</code>.</p> +<p>Si l'<i lang="en">iframe</i> et le document parent de l'<i lang="en">iframe</i> sont de la <a href="/fr/docs/Web/Security/Same-origin_policy">même origine</a>, <code>HTMLIFrameElement.contentDocument</code> retourne un <a href="/fr/docs/Web/API/Document"><code>Document</code></a> (c'est à dire le document actif dans le contexte de navigation imbriqué du cadre). Sinon, il retourne <code>null</code>.</p> <h2 id="examples">Exemples</code></h2> diff --git a/files/fr/web/api/htmliframeelement/contentwindow/index.html b/files/fr/web/api/htmliframeelement/contentwindow/index.html index 8ebaf2afd9..2dd8193ca3 100644 --- a/files/fr/web/api/htmliframeelement/contentwindow/index.html +++ b/files/fr/web/api/htmliframeelement/contentwindow/index.html @@ -14,11 +14,11 @@ translation_of: Web/API/HTMLIFrameElement/contentWindow <h2 id="Exemples">Exemples</h2> -<pre class="brush: js line-numbers language-js"><code class="language-js"><span class="keyword token">var</span> x <span class="operator token">=</span> document<span class="punctuation token">.</span><span class="function token">getElementsByTagName</span><span class="punctuation token">(</span><span class="string token">"iframe"</span><span class="punctuation token">)</span><span class="punctuation token">[</span><span class="number token">0</span><span class="punctuation token">]</span><span class="punctuation token">.</span>contentWindow<span class="punctuation token">;</span> -<span class="comment token">//x = window.frames[0];</span> +<pre class="brush: js">var x = document.getElementsByTagName("iframe")[0].contentWindow; +//x = window.frames[0]; -x<span class="punctuation token">.</span>document<span class="punctuation token">.</span><span class="function token">getElementsByTagName</span><span class="punctuation token">(</span><span class="string token">"body"</span><span class="punctuation token">)</span><span class="punctuation token">[</span><span class="number token">0</span><span class="punctuation token">]</span><span class="punctuation token">.</span>style<span class="punctuation token">.</span>backgroundColor <span class="operator token">=</span> <span class="string token">"blue"</span><span class="punctuation token">;</span> -<span class="comment token">// ceci devrait changer le 1er iframe dans le document bleu.</span></code></pre> +x.document.getElementsByTagName("body")[0].style.backgroundColor = "blue"; +// ceci devrait changer le 1er iframe dans le document bleu.</pre> <h2 id="Spécifications">Spécifications</h2> diff --git a/files/fr/web/api/htmliframeelement/csp/index.html b/files/fr/web/api/htmliframeelement/csp/index.html index f8a625f5ae..b07bf82f45 100644 --- a/files/fr/web/api/htmliframeelement/csp/index.html +++ b/files/fr/web/api/htmliframeelement/csp/index.html @@ -15,7 +15,7 @@ HTMLIFrameElement.csp = <em>csp</em></pre> <h3 id="value">Valeur</h3> -<p>Une <a href="https://w3c.github.io/webappsec-cspee/#dom-htmliframeelement-csp" class="external">stratégie de sécurité du contenu</a>.</p> +<p>Une <a href="https://w3c.github.io/webappsec-cspee/#dom-htmliframeelement-csp">stratégie de sécurité du contenu</a>.</p> <h2 id="specifications">Spécifications</h2> diff --git a/files/fr/web/api/htmliframeelement/featurepolicy/index.html b/files/fr/web/api/htmliframeelement/featurepolicy/index.html index 452e826dd6..54bcd1037e 100644 --- a/files/fr/web/api/htmliframeelement/featurepolicy/index.html +++ b/files/fr/web/api/htmliframeelement/featurepolicy/index.html @@ -12,15 +12,15 @@ translation_of: Web/API/HTMLIFrameElement/featurePolicy --- <div>{{APIRef("Feature Policy API")}}{{SeeCompatTable}}</div> -<p><span class="seoSummary">La propriété en lecture seule <strong><code>featurePolicy</code></strong> de l'interface {{DOMxRef("HTMLIFrameElement")}} retourne l'interface {{DOMxRef("FeaturePolicy")}}, qui fournit une API simple pour consulter facilement les règles de fonctionnalités appliquées à un élément <code><iframe></code> spécifique.</span></p> +<p>La propriété en lecture seule <strong><code>featurePolicy</code></strong> de l'interface {{DOMxRef("HTMLIFrameElement")}} retourne l'interface {{DOMxRef("FeaturePolicy")}}, qui fournit une API simple pour consulter facilement les règles de fonctionnalités appliquées à un élément <code><iframe></code> spécifique.</p> <h2 id="Syntaxe">Syntaxe</h2> -<pre class="syntaxbox notranslate">var policy = <em>HTMLIFrameElement</em>.featurePolicy</pre> +<pre class="syntaxbox">var policy = <em>HTMLIFrameElement</em>.featurePolicy</pre> <h3 id="Valeur">Valeur</h3> -<p>Un objet <a href="https://developer.mozilla.org/en-US/docs/Web/API/FeaturePolicy" title="Note: This interface is called Policy in Firefox."><code>FeaturePolicy</code></a> pouvant être utilisé pour consulter les paramètres Feature Policy appliqués au cadre.</p> +<p>Un objet <a href="/en-US/docs/Web/API/FeaturePolicy"><code>FeaturePolicy</code></a> pouvant être utilisé pour consulter les paramètres Feature Policy appliqués au cadre.</p> <h2 id="Spécification">Spécification</h2> |