/// 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)
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 ) {
        js! { @(no_return)
            @{self.as_ref()}.insertBefore( @{new_node.as_ref()}, @{reference_node.as_ref()} );
        }
    }
fn insert_before < T : INode , U : INode > ( & self , new_node : & T , reference_node : & U ) { js ! { ( no_return ) { self as_ref ( ) } insertBefore ( { new_node as_ref ( ) } { reference_node as_ref ( ) } ) } }
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