Skip to main content

hit_dom_id

Function hit_dom_id 

Source
pub fn hit_dom_id(path: &HitPath<'_>) -> Option<u32>
Expand description

Returns the innermost DOM node id on a hit path, if any.

The hit path is ordered child→parent, so the first node carrying a InfoNode::dom_id is the deepest DOM-backed element under the pointer.