aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/element/removeattributenode/index.html
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-10-02 17:20:14 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-02 17:30:20 +0200
commitc05efa8d7ae464235cf83d7c0956e42dc6974103 (patch)
tree6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/element/removeattributenode/index.html
parent13a5e017558b248ee1647d4a5825f183b51f09ad (diff)
downloadtranslated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/element/removeattributenode/index.html')
-rw-r--r--files/fr/web/api/element/removeattributenode/index.html45
1 files changed, 0 insertions, 45 deletions
diff --git a/files/fr/web/api/element/removeattributenode/index.html b/files/fr/web/api/element/removeattributenode/index.html
deleted file mode 100644
index 4ecd896414..0000000000
--- a/files/fr/web/api/element/removeattributenode/index.html
+++ /dev/null
@@ -1,45 +0,0 @@
----
-title: element.removeAttributeNode
-slug: Web/API/Element/removeAttributeNode
-tags:
- - API
- - DOM
- - Element
- - Méthodes
-translation_of: Web/API/Element/removeAttributeNode
----
-<p>{{ APIRef("DOM") }}</p>
-
-<p><code>removeAttributeNode</code> enlève l'attribut spécifié de l'élément courant.</p>
-
-<h2 id="Syntaxe">Syntaxe</h2>
-
-<pre class="eval"><em>removedAttr</em> =<em>element</em>.removeAttributeNode(<em>attributeNode</em>)
-</pre>
-
-<ul>
- <li><code>attributeNode</code> est le nœud <code>Attr</code> à enlever.</li>
- <li><code>removedAttr</code> est le nœud <code>Attr</code> qui vient d'être enlevé.</li>
-</ul>
-
-<h2 id="Exemple">Exemple</h2>
-
-<pre class="brush: html">// &lt;div id="top" align="center" /&gt;
-var d = document.getElementById("top");
-var d_align = d.getAttributeNode("align");
-d.removeAttributeNode(d_align);
-// align est maintenant supprimé : &lt;div id="top" /&gt;</pre>
-
-<h2 id="Notes">Notes</h2>
-
-<p>Si l'attribut enlevé a une valeur par défaut, celle-ci remplace immédiatement l'ancienne. Lorsque c'est possible, l'attribut de remplacement conserve la même URI d'espace de noms et le même nom local, ainsi que le préfixe original.</p>
-
-<p>Il n'y a pas de <code>removeAttributeNodeNS</code> (contrairement à la paire <code>setAttributeNode</code> et <code>setAttributeNodeNS</code> pour lesquels il est nécessaire de savoir quel attribut remplacer (le cas échéant),  <code>removeAttributeNode</code> n'a pas cette exigence.  <code>removeAttributeNode</code> peut supprimer des attributs, qu'ils soient d'espace de noms ou pas.</p>
-
-<p>{{ DOMAttributeMethods() }}</p>
-
-<h2 id="Sp.C3.A9cification">Spécification</h2>
-
-<ul>
- <li><a href="http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-D589198">DOM Level 2 Core : removeAttributeNode</a> — <small><a href="http://www.yoyodesign.org/doc/w3c/dom2-core/core.html#ID-D589198">traduction en français</a> (non normative)</small></li>
-</ul>