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
コード例 #1
0
ファイル: ElementTest.php プロジェクト: imangazaliev/didom
 public function testCloneNode()
 {
     $element = new Element('input');
     $cloned = $element->cloneNode(true);
     $this->assertFalse($element->is($cloned));
 }