cloneNode() public method

Clones a node.
public cloneNode ( boolean $deep = true ) : Element
$deep boolean Indicates whether to copy all descendant nodes
return Element The cloned node
Esempio n. 1
0
 public function testCloneNode()
 {
     $element = new Element('input');
     $cloned = $element->cloneNode(true);
     $this->assertFalse($element->is($cloned));
 }