--TEST-- Bug #40836 (Segfault in insertBefore) --SKIPIF-- --FILE-- preserveWhiteSpace = false; $xml = ' 2007-02-14T00:00:00+01:00 paragraph '; $dom->loadXML($xml); $entry = $dom->getElementsByTagNameNS("http://www.w3.org/2005/Atom", "entry")->item(0); $contentNode = $entry->getElementsByTagName("content")->item(0)->firstChild; $dateNode = $entry->getElementsByTagName("updated")->item(0)->firstChild; $contentNode->firstChild->insertBefore($dateNode); echo $dom->saveXML(); ?> --EXPECT-- paragraph2007-02-14T00:00:00+01:00
paragraph
paragraph2007-02-14T00:00:00+01:00