fn insert_before< T: INode, U: INode >( &self, new_node: &T, reference_node: &U ) -> Result< Node, InsertNodeError > {
        js_try! (
            return @{self.as_ref()}.insertBefore( @{new_node.as_ref()}, @{reference_node.as_ref()} );
        ).unwrap()
    }
/// Inserts the specified node before the reference node as a child of the current node.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore)
// https://dom.spec.whatwg.org/#ref-for-dom-node-insertbefore
Inserts the specified node before the reference node as a child of the current node.
Inserts the specified node before the reference node as a child of the current node .
fn insert_before< T: INode, U: INode >( &self, new_node: &T, reference_node: &U ) -> Result< Node, InsertNodeError > {
        js_try! (
            return @{self.as_ref()}.insertBefore( @{new_node.as_ref()}, @{reference_node.as_ref()} );
        ).unwrap()
    }
fn insert_before < T : INode , U : INode > ( & self , new_node : & T , reference_node : & U ) -> Result < Node , InsertNodeError > { js_try ! ( return { self as_ref ( ) } insertBefore ( { new_node as_ref ( ) } { reference_node as_ref ( ) } ) ) . unwrap ( ) }
Inserts the specified node before the reference node as a child of the current node.
Inserts the specified node before the reference node as a child of the current node .
&self
new_node
&T
reference_node
&U
&self
new_node
&T
reference_node
&U