fn clone_node( &self, kind: CloneKind ) -> Self {
        let is_deep = match kind {
            CloneKind::Deep => true,
            CloneKind::Shallow => false
        };

        let cloned = js! {
            return @{self.as_ref()}.cloneNode( @{is_deep} );
        };

        cloned.into_reference().unwrap().downcast::< Self >().unwrap()
    }
/// Returns a duplicate of the node on which this method was called.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode)
Returns a duplicate of the node on which this method was called.
Returns a duplicate of the node on which this method was called .
fn clone_node( &self, kind: CloneKind ) -> Self {
        let is_deep = match kind {
            CloneKind::Deep => true,
            CloneKind::Shallow => false
        };
        let cloned = js! {
            return @{self.as_ref()}.cloneNode( @{is_deep} );
        };
        cloned.into_reference().unwrap().downcast::< Self >().unwrap()
    }
fn clone_node ( & self , kind : CloneKind ) -> Self { let is_deep = match kind { CloneKind :: Deep => true , CloneKind :: Shallow => false } ; let cloned = js ! { return { self as_ref ( ) } cloneNode ( { is_deep } ) } ; cloned . into_reference ( ) . unwrap ( ) . downcast :: < Self > ( ) . unwrap ( ) }
Returns a duplicate of the node on which this method was called.
Returns a duplicate of the node on which this method was called .
&self
kind
CloneKind
&self
kind
CloneKind