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