[Phpxd-commits] CVS: phpXD/include/dom Node.php,1.4,1.5
Status: Beta
Brought to you by:
growbal
|
From: Thomas D. <th...@us...> - 2002-11-02 14:02:34
|
Update of /cvsroot/phpxd/phpXD/include/dom
In directory usw-pr-cvs1:/tmp/cvs-serv30693
Modified Files:
Node.php
Log Message:
Index: Node.php
===================================================================
RCS file: /cvsroot/phpxd/phpXD/include/dom/Node.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Node.php 13 Feb 2002 21:21:47 -0000 1.4
--- Node.php 2 Nov 2002 14:02:31 -0000 1.5
***************
*** 471,475 ****
for ($i = 0; $i < $this->attributes->getLength(); $i++) {
$attr =& $this->attributes->item($i);
! $newAttr[$i] =& $attr->cloneNode(true, $ownerDocument);
$newAttr[$i]->specified = true;
if (!isset($oldAttr)) {
--- 471,475 ----
for ($i = 0; $i < $this->attributes->getLength(); $i++) {
$attr =& $this->attributes->item($i);
! $newAttr[$i] =& $attr->Node(true, $ownerDocument);
$newAttr[$i]->specified = true;
if (!isset($oldAttr)) {
***************
*** 493,496 ****
--- 493,497 ----
$child =& $this->childNodes->item($i);
$newChild[$i] =& $child->cloneNode($deep, $ownerDocument);
+ $newChild[$i]->parentNode = &$clone;
if (!isset($oldChild)) {
$clone->firstChild = &$newChild[$i];
|