Skip to main content

contains

Function contains 

Source
pub fn contains(doc: &BaseDocument, node: NodeId, other: NodeId) -> Result<bool>
Expand description

node.contains(other).

True when other is node or a descendant of it, matching the DOM’s inclusive definition.