diff options
| author | julieng <julien.gattelier@gmail.com> | 2021-10-02 17:20:14 +0200 |
|---|---|---|
| committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-02 17:30:20 +0200 |
| commit | c05efa8d7ae464235cf83d7c0956e42dc6974103 (patch) | |
| tree | 6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/node/nodevalue/index.html | |
| parent | 13a5e017558b248ee1647d4a5825f183b51f09ad (diff) | |
| download | translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2 translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip | |
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/node/nodevalue/index.html')
| -rw-r--r-- | files/fr/web/api/node/nodevalue/index.html | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/files/fr/web/api/node/nodevalue/index.html b/files/fr/web/api/node/nodevalue/index.html deleted file mode 100644 index 9f3fa1f3b3..0000000000 --- a/files/fr/web/api/node/nodevalue/index.html +++ /dev/null @@ -1,93 +0,0 @@ ---- -title: element.nodeValue -slug: Web/API/Node/nodeValue -tags: - - API - - DOM - - Noeuds - - Propriétés -translation_of: Web/API/Node/nodeValue ---- -<p>{{APIRef("DOM")}}</p> - -<p>La propriété <code><strong>Node.nodeValue</strong></code> renvoie ou définit la valeur du nœud courant.</p> - -<h2 id="Syntaxe">Syntaxe</h2> - -<pre class="syntaxbox"><var>value</var> = <var>node</var>.nodeValue; -</pre> - -<p><code>value</code> (<em>valeur</em>) est une chaîne contenant la valeur du nœud courant, s'il y en a une.</p> - -<h2 id="Notes">Notes</h2> - -<p>Pour le document lui-même, <code>nodeValue</code> renvoie <code>null</code>. Pour des nœuds texte, de commentaires et CDATA, <code>nodeValue</code> renvoie le contenu du nœud. Pour les nœuds d'attributs, il s'agira de la valeur de l'attribut.</p> - -<p>Le tableau suivant montre les valeurs de retour pour différents types de nœuds :</p> - -<table> - <tbody> - <tr> - <td>Attr</td> - <td>valeur de l'attribut</td> - </tr> - <tr> - <td>CDATASection</td> - <td>contenu de la section CDATA</td> - </tr> - <tr> - <td>Comment</td> - <td>contenu du commentaire</td> - </tr> - <tr> - <td>Document</td> - <td><code>null</code></td> - </tr> - <tr> - <td>DocumentFragment</td> - <td><code>null</code></td> - </tr> - <tr> - <td>DocumentType</td> - <td><code>null</code></td> - </tr> - <tr> - <td>Element</td> - <td><code>null</code></td> - </tr> - <tr> - <td>NamedNodeMap</td> - <td><code>null</code></td> - </tr> - <tr> - <td>EntityReference</td> - <td><code>null</code></td> - </tr> - <tr> - <td>Notation</td> - <td><code>null</code></td> - </tr> - <tr> - <td>ProcessingInstruction</td> - <td>tout le contenu à l'exception de la cible</td> - </tr> - <tr> - <td>Text</td> - <td>contenu du nœud texte</td> - </tr> - </tbody> -</table> - -<p>Lorsque <code>nodeValue</code> est défini comme étant <code>null</code>, l'assignation n'a aucun effet.</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-F68D080">DOM Level 2 Core: Node.nodeValue</a> <small>— <a href="http://www.yoyodesign.org/doc/w3c/dom2-core/core.html#ID-F68D080">traduction</a> (non normative)</small></li> -</ul> - -<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> - - - -<p>{{Compat("api.Node.nodeValue")}}</p> |
