@@ 12584-12588 (lines=5) @@ | ||
12581 | $fragment->appendChild(new DOMText($text)); |
|
12582 | } |
|
12583 | $number = $element->childNodes->length; |
|
12584 | for ($i = $number; $i > 0; $i--) |
|
12585 | { |
|
12586 | $child = $element->childNodes->item(0); |
|
12587 | $fragment->appendChild($child); |
|
12588 | } |
|
12589 | if (!in_array($tag, array('script', 'style'))) |
|
12590 | { |
|
12591 | $fragment->appendChild(new DOMText('</' . $tag . '>')); |
|
@@ 12611-12615 (lines=5) @@ | ||
12608 | { |
|
12609 | $fragment = $document->createDocumentFragment(); |
|
12610 | $number = $element->childNodes->length; |
|
12611 | for ($i = $number; $i > 0; $i--) |
|
12612 | { |
|
12613 | $child = $element->childNodes->item(0); |
|
12614 | $fragment->appendChild($child); |
|
12615 | } |
|
12616 | $element->parentNode->replaceChild($fragment, $element); |
|
12617 | } |
|
12618 | } |