aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/range/surroundcontents/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/it/web/api/range/surroundcontents/index.html')
-rw-r--r--files/it/web/api/range/surroundcontents/index.html36
1 files changed, 0 insertions, 36 deletions
diff --git a/files/it/web/api/range/surroundcontents/index.html b/files/it/web/api/range/surroundcontents/index.html
deleted file mode 100644
index 32b94161ef..0000000000
--- a/files/it/web/api/range/surroundcontents/index.html
+++ /dev/null
@@ -1,36 +0,0 @@
----
-title: range.surroundContents
-slug: Web/API/Range/surroundContents
-tags:
- - DOM
- - Gecko
- - Reference_del_DOM_di_Gecko
- - Tutte_le_categorie
-translation_of: Web/API/Range/surroundContents
----
-<p>{{ ApiRef() }}</p>
-<h3 id="Sommario" name="Sommario">Sommario</h3>
-<p>Sposta il contenuto di un <a href="it/DOM/range">Range</a> in un nuovo nodo, piazzando il nuovo nodo all'inizio del range specificato.</p>
-<h3 id="Sintassi" name="Sintassi">Sintassi</h3>
-<pre class="eval"><i>range</i>.surroundContents(<i>nuovoNodo</i>);
-</pre>
-<dl>
- <dt>
- nuovoNodo </dt>
- <dd>
- è un nodo</dd>
-</dl>
-<h3 id="Esempio" name="Esempio">Esempio</h3>
-<pre class="eval">var range = document.createRange();
-var nuovoNodo = document.createElement("p");
-range.selectNode(document.getElementsByTagName("div").item(0));
-range.surroundContents(nuovoNodo);
-</pre>
-<h3 id="Note" name="Note">Note</h3>
-<p><code>surroundContents</code> equivale a:</p>
-<pre class="eval"><code>nuovoNodo.appendChild(<a href="it/DOM/range.extractContents">range.extractContents()</a>);
-range.insertNode(nuovoNodo)</code>
-</pre>
-<p>Per effetto di questo metodo, i punti estremi del <code>range</code> includono <code>nuovoNodo</code>.</p>
-<h3 id="Specifiche" name="Specifiche">Specifiche</h3>
-<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113/ranges.html#Level2-Range-method-surroundContents">DOM Level 2 Range: Range.surroundContents</a></p>