duplicate method

DOMNode? duplicate()

Duplicate this node and add it to the parent.

Implementation

DOMNode? duplicate() {
  var parent = this.parent;
  if (parent == null) return null;
  return parent.duplicateNode(this);
}