isConsecutiveNode method

bool isConsecutiveNode(
  1. DOMNode other
)

Returns true if other is the previous or next sibling of this node parent.

Implementation

bool isConsecutiveNode(DOMNode other) {
  return isNextNode(other) || isPreviousNode(other);
}