Skip to main content

document_token

Function document_token 

Source
pub fn document_token(tree: &AxTree) -> Option<u64>
Expand description

Identity of the document the tree was taken from: the root (RootWebArea) node’s backendDOMNodeId, which is the Document node. It changes on every navigation, so it doubles as a staleness token for refs. None when the tree carries no backend ids (mock/partial).