has_ancestor_tag

Function has_ancestor_tag 

Source
pub fn has_ancestor_tag(
    element: &ElementRef<'_>,
    tag_name: &str,
    max_depth: Option<usize>,
    filter_fn: Option<fn(&ElementRef<'_>) -> bool>,
) -> bool
Expand description

Check if element has ancestor with specific tag