Returns true if other is in the same parent of this node.
true
other
bool isInSameParent(DOMNode other) { var parent = this.parent; return parent != null && parent == other.parent; }