Skip to main content

get_root

Function get_root 

Source
pub fn get_root<N: DomNavigator>(node: &N) -> N
Expand description

Get the root node from a given node.

Navigates to the document root.

§Arguments

  • node - The starting node

§Returns

A clone of the navigator positioned at the root.