From 95aca4b4d8fa62815d4bd412fff1a364f842814a Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 29 Apr 2021 16:16:42 -0700 Subject: remove retired locales (#699) --- files/it/web/api/range/surroundcontents/index.html | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 files/it/web/api/range/surroundcontents/index.html (limited to 'files/it/web/api/range/surroundcontents') 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 ---- -

{{ ApiRef() }}

-

Sommario

-

Sposta il contenuto di un Range in un nuovo nodo, piazzando il nuovo nodo all'inizio del range specificato.

-

Sintassi

-
range.surroundContents(nuovoNodo);
-
-
-
- nuovoNodo 
-
- è un nodo
-
-

Esempio

-
var range = document.createRange();
-var nuovoNodo = document.createElement("p");
-range.selectNode(document.getElementsByTagName("div").item(0));
-range.surroundContents(nuovoNodo);
-
-

Note

-

surroundContents equivale a:

-
nuovoNodo.appendChild(range.extractContents());
-range.insertNode(nuovoNodo)
-
-

Per effetto di questo metodo, i punti estremi del range includono nuovoNodo.

-

Specifiche

-

DOM Level 2 Range: Range.surroundContents

-- cgit v1.2.3-54-g00ecf