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