@@ 373-378 (lines=6) @@ | ||
370 | return FALSE; |
|
371 | } |
|
372 | ||
373 | if ($newnode->ownerDocument === $this) { |
|
374 | $appendnode = $newnode; |
|
375 | } |
|
376 | else { |
|
377 | $appendnode = $this->importNode($newnode, true); |
|
378 | } |
|
379 | ||
380 | return $context->appendChild($appendnode); |
|
381 | } |
|
@@ 461-466 (lines=6) @@ | ||
458 | } |
|
459 | else { |
|
460 | // $context has no sibling next to it : insert newnode as last child of it's parent |
|
461 | if ($newnode->ownerDocument === $this) { |
|
462 | $appendnode = $newnode; |
|
463 | } |
|
464 | else { |
|
465 | $appendnode = $this->importNode($newnode, true); |
|
466 | } |
|
467 | return $context->parentNode->appendChild($appendnode); |
|
468 | } |
|
469 | } |