protected function reparentElement(DOMElement $element)
	{
		$parentNode = $element->parentNode;
		do
		{
			$lastChild = $parentNode->lastChild;
			$parentNode->parentNode->insertBefore($lastChild, $parentNode->nextSibling);
		}
		while (!$lastChild->isSameNode($element));
	}
protected function reparentElement(DOMElement $element)
	{
		$parentNode = $element->parentNode;
		do
		{
			$lastChild = $parentNode->lastChild;
			$parentNode->parentNode->insertBefore($lastChild, $parentNode->nextSibling);
		}
		while (!$lastChild->isSameNode($element));
	}
protected function reparentElement ( DOMElement $ element ) { $ parentNode = $ element -> parentNode ; do { $ lastChild = $ parentNode -> lastChild ; $ parentNode -> parentNode -> insertBefore ( $ lastChild , $ parentNode -> nextSibling ) ; } while ( ! $ lastChild -> isSameNode ( $ element ) ) ; }
Move given element and its following siblings after its parent element

@param  DOMElement $element First element to move
@return void
Move given element and its following siblings after its parent element