1--TEST--
2Dom\Node::cloneNode() should copy the document properties
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createEmpty();
9$dom = $dom->cloneNode();
10
11$dom->appendChild($dom->createElement("foo"));
12
13try {
14    $dom->prepend($dom->createElement("bar"));
15} catch (DOMException $e) {
16    echo $e->getMessage(), "\n";
17}
18
19?>
20--EXPECT--
21Cannot have more than one element child in a document
22