checkNodes method

void checkNodes()

Checks children nodes integrity.

Implementation

void checkNodes() {
  final content = _content;
  if (content != null && content.isNotEmpty) {
    for (var child in content) {
      if (child.parent == null) {
        throw StateError('parent null');
      }

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