1--TEST--
2DOMElement: DOMChildNode, DOMParentNode modifications without a document
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$element = new DOMElement("p", " Hello World! ");
9$element->append("APPENDED");
10$element->prepend("PREPENDED");
11$element->after("AFTER");
12$element->before("BEFORE");
13$element->replaceWith("REPLACE");
14
15$doc = new DOMDocument();
16$doc->adoptNode($element);
17echo $doc->saveXML($element), "\n";
18
19?>
20--EXPECT--
21<p>PREPENDED Hello World! APPENDED</p>
22