Skip to main content

find_child_in_ancestors

Function find_child_in_ancestors 

Source
fn find_child_in_ancestors<'a, Traversal: NoGcTraversal>(
    no_gc: &'a NoGC,
    possible_descendant: &Node,
    possible_ancestor: &Node,
) -> Option<UnrootedDom<'a, Node>>
Expand description

If possible_ancestor is an ancestor of possible_descendant return the child of possible_ancestor that is an ancestor of possible_descendant or is possible_descendant itself.