internalCloneWithOwnerDocument method

  1. @visibleForTesting
  2. @override
Node internalCloneWithOwnerDocument(
  1. Document ownerDocument,
  2. bool? deep
)
override

Implementation

@visibleForTesting
@override
Node internalCloneWithOwnerDocument(Document ownerDocument, bool? deep) {
  final clone = HtmlDocument.internal(
    window: window,
    contentType: contentType,
    filled: false,
  );
  if (deep != false) {
    Node._cloneChildrenFrom(clone, newParent: clone, oldParent: this);
  }
  return clone;
}