fn contains< T: INode >( &self, node: &T ) -> bool {
        js!(
            return @{self.as_ref()}.contains( @{node.as_ref()} );
        ).try_into().unwrap()
    }
/// Checks whenever a given node is a descendant of this one or not.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/Node/contains)
Checks whenever a given node is a descendant of this one or not.
Checks whenever a given node is a descendant of this one or not .
fn contains< T: INode >( &self, node: &T ) -> bool {
        js!(
            return @{self.as_ref()}.contains( @{node.as_ref()} );
        ).try_into().unwrap()
    }
fn contains < T : INode > ( & self , node : & T ) -> bool { js ! ( return { self as_ref ( ) } contains ( { node as_ref ( ) } ) ) . try_into ( ) . unwrap ( ) }
Checks whenever a given node is a descendant of this one or not.
Checks whenever a given node is a descendant of this one or not .
&self
node
&T
&self
node
&T