checkNodes method

void checkNodes()

Checks children nodes integrity.

Implementation

void checkNodes() {
  if (isEmptyContent) return;

  for (var child in _content!) {
    if (child.parent == null) {
      throw StateError('parent null');
    }

    if (child is DOMElement) {
      child.checkNodes();
    }
  }
}