diff options
Diffstat (limited to 'files/it/web/api/element/nodevalue/index.html')
-rw-r--r-- | files/it/web/api/element/nodevalue/index.html | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/files/it/web/api/element/nodevalue/index.html b/files/it/web/api/element/nodevalue/index.html new file mode 100644 index 0000000000..547ba77939 --- /dev/null +++ b/files/it/web/api/element/nodevalue/index.html @@ -0,0 +1,75 @@ +--- +title: element.nodeValue +slug: Web/API/Element/nodeValue +tags: + - DOM + - Gecko + - Reference_del_DOM_di_Gecko + - Tutte_le_categorie +translation_of: Web/API/Node/nodeValue +--- +<p>{{ ApiRef() }}</p> +<h3 id="Sommario" name="Sommario">Sommario</h3> +<p>Restituisce il valore del nodo corrente.</p> +<h3 id="Sintassi" name="Sintassi">Sintassi</h3> +<pre class="eval"><em>valore</em> = document.nodeValue +</pre> +<p><code>valore</code> è una stringa contenente il valore del nodo corrente, se esiste.</p> +<h3 id="Note" name="Note">Note</h3> +<p>La proprietà <code>nodeValue</code> dell'intero documento, restituisce <code>null</code>. Per un nodo di tipo testo, commento o CDATA, <code>nodeValue</code> restituisce il contenuto del nodo. Per i nodi attributo, restituisce il valore dell'attributo.</p> +<p>La tabella seguente mostra i valori restituiti per i vari tipi di elementi:</p> +<table> + <tbody> + <tr> + <td>Attr</td> + <td>il valore dell'attributo</td> + </tr> + <tr> + <td>CDATASection</td> + <td>il contenuto della sezione CDATA</td> + </tr> + <tr> + <td>Comment</td> + <td>il commento</td> + </tr> + <tr> + <td>Document</td> + <td>null</td> + </tr> + <tr> + <td>DocumentFragment</td> + <td>null</td> + </tr> + <tr> + <td>DocumentType</td> + <td>null</td> + </tr> + <tr> + <td>Element</td> + <td>null</td> + </tr> + <tr> + <td>NamedNodeMap</td> + <td>null</td> + </tr> + <tr> + <td>EntityReference</td> + <td>null</td> + </tr> + <tr> + <td>Notation</td> + <td>null</td> + </tr> + <tr> + <td>ProcessingInstruction</td> + <td>l'intero contenuto, escluso il target</td> + </tr> + <tr> + <td>Text</td> + <td>il contenuto del nodo testo</td> + </tr> + </tbody> +</table> +<p>Quando <code>nodeValue</code> è impostato a <code>null</code>, reimpostarlo non ha alcun effetto.</p> +<h3 id="Specifiche" name="Specifiche">Specifiche</h3> +<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-F68D080">nodeValue </a></p> |