function promote_children() { while ($this->node->hasChildNodes()) { $child = $this->node->firstChild; $this->node->removeChild($child); $this->node->parentNode->insertBefore($child, $this->node); } }