pub fn contains(doc: &BaseDocument, node: NodeId, other: NodeId) -> Result<bool>
node.contains(other).
node.contains(other)
True when other is node or a descendant of it, matching the DOM’s inclusive definition.
other
node