diff options
author | MDN <actions@users.noreply.github.com> | 2021-06-30 00:38:38 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-06-30 00:38:38 +0000 |
commit | c98a9b1cf02d9143cc6924f1991d600c0f807411 (patch) | |
tree | f42fa9c2dada7edef3ad108024fb9dc68e3c13de /files/pt-br/orphaned | |
parent | e189146261073bc1cfb436698e3febd15e09cab4 (diff) | |
download | translated-content-c98a9b1cf02d9143cc6924f1991d600c0f807411.tar.gz translated-content-c98a9b1cf02d9143cc6924f1991d600c0f807411.tar.bz2 translated-content-c98a9b1cf02d9143cc6924f1991d600c0f807411.zip |
[CRON] sync translated content
Diffstat (limited to 'files/pt-br/orphaned')
-rw-r--r-- | files/pt-br/orphaned/web/api/childnode/index.html | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/files/pt-br/orphaned/web/api/childnode/index.html b/files/pt-br/orphaned/web/api/childnode/index.html new file mode 100644 index 0000000000..282b89ee3a --- /dev/null +++ b/files/pt-br/orphaned/web/api/childnode/index.html @@ -0,0 +1,79 @@ +--- +title: ChildNode +slug: orphaned/Web/API/ChildNode +tags: + - API + - DOM + - Experimental + - Interface + - NeedsTranslation + - Node + - TopicStub +translation_of: Web/API/ChildNode +original_slug: Web/API/ChildNode +--- +<div>{{APIRef("DOM")}}</div> + +<div>A interface <code><strong>ChildNode</strong></code> contém métodos que são particulares para os objetos</div> + +<p>{{domxref("Node")}} que podem ter um pai.</p> + +<p><code>ChildNode</code> é uma interface bruta e nenhum objeto desse tipo pode ser criado; eles são implementados pelos objetos {{domxref("Element")}}, {{domxref("DocumentType")}}, e {{domxref("CharacterData")}}.</p> + +<h2 id="Propriedades">Propriedades</h2> + +<p><em><font><font>Não há propriedades herdadas nem específicas.</font></font></em></p> + +<h2 id="Métodos">Métodos</h2> + +<p><em>Não há métodos herdados.</em></p> + +<dl> + <dt>{{domxref("ChildNode.remove()")}} {{experimental_inline}}</dt> + <dd>Removes this <code>ChildNode</code> from the children list of its parent.</dd> + <dt>{{domxref("ChildNode.before()")}} {{experimental_inline}}</dt> + <dd>Inserts a set of {{domxref("Node")}} or {{domxref("DOMString")}} objects in the children list of this <code>ChildNode</code>'s parent, just before this <code>ChildNode</code>. {{domxref("DOMString")}} objects are inserted as equivalent {{domxref("Text")}} nodes.</dd> + <dt>{{domxref("ChildNode.after()")}} {{experimental_inline}}</dt> + <dd>Inserts a set of {{domxref("Node")}} or {{domxref("DOMString")}} objects in the children list of this <code>ChildNode</code>'s parent, just after this <code>ChildNode</code>. {{domxref("DOMString")}} objects are inserted as equivalent {{domxref("Text")}} nodes.</dd> + <dt>{{domxref("ChildNode.replaceWith()")}} {{experimental_inline}}</dt> + <dd>Replaces this <code>ChildNode</code> in the children list of its parent with a set of {{domxref("Node")}} or {{domxref("DOMString")}} objects. {{domxref("DOMString")}} objects are inserted as equivalent {{domxref("Text")}} nodes.</dd> +</dl> + +<h2 id="Especificações">Especificações</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Especificação</th> + <th scope="col">Status</th> + <th scope="col">Comentário</th> + </tr> + <tr> + <td>{{SpecName('DOM WHATWG', '#interface-childnode', 'ChildNode')}}</td> + <td>{{Spec2('DOM WHATWG')}}</td> + <td>Split the <code>ElementTraversal</code> interface in {{domxref("ParentNode")}} and <code>ChildNode</code>. <code>previousElementSibling</code> and <code>nextElementSibling</code> are now defined on the latter. The {{domxref("CharacterData")}} and {{domxref("DocumentType")}} implemented the new interfaces. Added the <code>remove()</code>, <code>before()</code>, <code>after()</code> and <code>replaceWith()</code> methods.</td> + </tr> + <tr> + <td>{{SpecName('Element Traversal', '#interface-elementTraversal', 'ElementTraversal')}}</td> + <td>{{Spec2('Element Traversal')}}</td> + <td>Added the initial definition of its properties to the <code>ElementTraversal</code> pure interface and use it on {{domxref("Element")}}.</td> + </tr> + </tbody> +</table> + +<h2 id="Polyfill">Polyfill</h2> + +<p>External on github: <a href="https://github.com/seznam/JAK/blob/master/lib/polyfills/childNode.js">childNode.js</a></p> + +<h2 id="Browser_compatibility">Compatibilidade com navegadores</h2> + +<p>{{Compat("api.ChildNode")}}</p> + +<h2 id="See_also">See also</h2> + +<ul> + <li>The {{domxref("ParentNode")}} pure interface.</li> + <li> + <div class="syntaxbox">Object types implementing this pure interface: {{domxref("CharacterData")}}, {{domxref("Element")}}, and {{domxref("DocumentType")}}.</div> + </li> +</ul> |