1--TEST--
2HierarchyRequestError on appending document to element
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createEmpty();
9$container = $dom->createElement('container');
10try {
11    $container->append($dom);
12} catch (DOMException $e) {
13    echo $e->getMessage(), "\n";
14}
15
16?>
17--EXPECT--
18Hierarchy Request Error
19