1 use webcore::reference_type::ReferenceType;
2 
3 /// The `ChildNode` interface contains methods that are particular to `Node`
4 /// objects that can have a parent.
5 ///
6 /// You most likely don't want to `use` this directly; instead
7 /// you should `use stdweb::traits::*;`.
8 ///
9 /// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/ChildNode)
10 // https://dom.spec.whatwg.org/#interface-childnode
11 pub trait IChildNode: ReferenceType {
12     /// The `ChildNode.remove()` method removes the object from the tree it belongs to.
13     ///
14     /// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/remove)
15     // https://dom.spec.whatwg.org/#ref-for-dom-childnode-remove
remove( &self )16     fn remove( &self ) {
17         js! { @(no_return)
18             @{self.as_ref()}.remove();
19         };
20     }
21 }
22