aboutsummaryrefslogtreecommitdiff
path: root/files/es/orphaned/web/api/childnode/before/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/es/orphaned/web/api/childnode/before/index.html')
-rw-r--r--files/es/orphaned/web/api/childnode/before/index.html176
1 files changed, 0 insertions, 176 deletions
diff --git a/files/es/orphaned/web/api/childnode/before/index.html b/files/es/orphaned/web/api/childnode/before/index.html
deleted file mode 100644
index cfede06158..0000000000
--- a/files/es/orphaned/web/api/childnode/before/index.html
+++ /dev/null
@@ -1,176 +0,0 @@
----
-title: ChildNode.before()
-slug: orphaned/Web/API/ChildNode/before
-tags:
- - API
- - DOM
- - Experimental
- - Nodo
- - Referencia
- - metodo
-translation_of: Web/API/ChildNode/before
-original_slug: Web/API/ChildNode/before
----
-<p><textarea></textarea></p>
-
-<div id="gt-input-tool">
-<div id="itamenu"> </div>
-</div>
-
-<div class="g-unit" id="gt-src-c">
-<div id="gt-src-p"> </div>
-</div>
-
-<div id="gt-res-content">
-<div dir="ltr" style="zoom: 1;"><span id="result_box" lang="es"><span>{{APIRef ( "DOM")}} {{SeeCompatTable}}</span><br>
-<br>
-<span>El método <strong>ChildNode.before</strong> inserta un conjunto de objetos {{domxref ( "Node")}} o {{domxref ( "DOMString")}} en la lista de hijos de este ChildNode del padre, justo antes de este ChildNode.</span> <span>Los objetos {{domxref ( "DOMString")}} se insertan como nodos equivalentes {{domxref ( "Text")}}.</span></span></div>
-</div>
-
-<h2 id="Síntasix">Síntasix</h2>
-
-<pre class="syntaxbox">[Throws, Unscopable]
-void ChildNode.before((Node or DOMString)... nodes);
-</pre>
-
-<h3 id="Parámetros">Parámetros</h3>
-
-<dl>
- <dt><code>nodos</code></dt>
- <dd><span id="result_box" lang="es"><span>Un conjunto de objetos {{domxref ( "Node")}} o {{domxref ( "DOMString")}} para insertar.</span></span></dd>
-</dl>
-
-<h3 id="Excepciones">Excepciones</h3>
-
-<ul>
- <li>{{domxref("HierarchyRequestError")}}: Node cannot be inserted at the specified point in the hierarchy.</li>
-</ul>
-
-<h2 id="Ejemplos">Ejemplos</h2>
-
-<h3 id="Insertando_un_elemento">Insertando un elemento</h3>
-
-<pre class="brush: js">var parent = document.createElement("div");
-var child = document.createElement("p");
-parent.appendChild(child);
-var span = document.createElement("span");
-
-child.before(span);
-
-console.log(parent.outerHTML);
-// "&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;"
-</pre>
-
-<h3 id="Insertando_texto">Insertando texto</h3>
-
-<pre class="brush: js">var parent = document.createElement("div");
-var child = document.createElement("p");
-parent.appendChild(child);
-
-child.before("Text");
-
-console.log(parent.outerHTML);
-// "&lt;div&gt;Text&lt;p&gt;&lt;/p&gt;&lt;/div&gt;"</pre>
-
-<h3 id="Insertando_un_elemento_y_texto">Insertando un elemento y texto</h3>
-
-<pre class="brush: js">var parent = document.createElement("div");
-var child = document.createElement("p");
-parent.appendChild(child);
-var span = document.createElement("span");
-
-child.before(span, "Text");
-
-console.log(parent.outerHTML);
-// "&lt;div&gt;&lt;span&gt;&lt;/span&gt;Text&lt;p&gt;&lt;/p&gt;&lt;/div&gt;"</pre>
-
-<h3 id="ChildNode.before()_es_unscopable"><code>ChildNode.before()</code> es unscopable</h3>
-
-<p><span id="result_box" lang="es"><span>El método before () no está definido en la declaración <em>with</em>.</span> <span>Consulte {{jsxref ( "Symbol.unscopables")}} para obtener más información.</span></span></p>
-
-<pre class="brush: js">with(node) {
- before("foo");
-}
-// ReferenceError: before is not defined </pre>
-
-<h2 id="Especificación">Especificación</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Especificación</th>
- <th scope="col">Estado</th>
- <th scope="col">Comentario</th>
- </tr>
- <tr>
- <td>{{SpecName('DOM WHATWG', '#dom-childnode-before', 'ChildNode.before()')}}</td>
- <td>{{Spec2('DOM WHATWG')}}</td>
- <td>Definición Inicial.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilidad_en_los_Navegadores">Compatibilidad en los Navegadores</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Función</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Soporte  Básico</td>
- <td>{{CompatChrome(54.0)}}</td>
- <td>{{CompatGeckoDesktop(49)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(39)}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Función</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Soporte Básico</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(54.0)}}</td>
- <td>{{CompatGeckoMobile(49)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(39)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatChrome(54.0)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="Ver_también">Ver también</h2>
-
-<ul>
- <li>{{domxref("ChildNode")}} and {{domxref("ParentNode")}}</li>
- <li>{{domxref("ChildNode.after()")}}</li>
- <li>{{domxref("ParentNode.append()")}}</li>
- <li>{{domxref("Node.appendChild()")}}</li>
- <li>{{domxref("Node.insertBefore()")}}</li>
- <li>{{domxref("NodeList")}}</li>
-</ul>