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

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

        Ok( 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)
// https://dom.spec.whatwg.org/#ref-for-dom-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 ) -> Result< Self, TODO > {
        let is_deep = match kind {
            CloneKind::Deep => true,
            CloneKind::Shallow => false
        };
        let cloned = js! {
            return @{self.as_ref()}.cloneNode( @{is_deep} );
        };
        Ok( cloned.into_reference().unwrap().downcast::< Self >().unwrap() )
    }
fn clone_node ( & self , kind : CloneKind ) -> Result < Self , TODO > { let is_deep = match kind { CloneKind :: Deep => true , CloneKind :: Shallow => false } ; let cloned = js ! { return { self as_ref ( ) } cloneNode ( { is_deep } ) } ; Ok ( 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