pub fn select(&self, sel: &str) -> Selection {
        let matcher = Matcher::new(sel).expect("Invalid CSS selector");
        let root = self.tree.root();
        Selection {
            nodes: Matches::from_one(root, matcher.clone(), MatchScope::IncludeNode).collect(),
        }
    }
/// Gets the descendants of the root document node in the current, filter by a selector.
/// It returns a new selection object containing these matched elements.
///
/// # Panics
///
/// Panics if failed to parse the given CSS selector.
Gets the descendants of the root document node in the current, filter by a selector.
It returns a new selection object containing these matched elements.
Gets the descendants of the root document node in the current filter by a selector . It returns a new selection object containing these matched elements .
pub fn select(&self, sel: &str) -> Selection {
        let matcher = Matcher::new(sel).expect("Invalid CSS selector");
        let root = self.tree.root();
        Selection {
            nodes: Matches::from_one(root, matcher.clone(), MatchScope::IncludeNode).collect(),
        }
    }
pub fn select ( & self , sel : & str ) -> Selection { let matcher = Matcher :: new ( sel ) . expect ( " " ) ; let root = self . tree . root ( ) ; Selection { nodes : Matches :: from_one ( root , matcher . clone ( ) , MatchScope :: IncludeNode ) . collect ( ) , } }
Gets the descendants of the root document node in the current, filter by a selector.
Gets the descendants of the root document node in the current filter by a selector .
&self
sel
&str
&self
sel
&str
panics
Panics if failed to parse the given CSS selector.
Panics if failed to parse the given CSS selector .