1--TEST--
2Dom\HTMLDocument serialization of document fragment
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createEmpty();
9$fragment = $dom->createDocumentFragment();
10$fragment->appendChild($dom->createElement("foo"));
11$bar = $fragment->appendChild($dom->createElement("bar"));
12$fragment->appendChild($dom->createElement("baz"));
13$bar->appendChild($dom->createElement("inner"));
14echo $dom->saveHtml($fragment);
15
16?>
17--EXPECT--
18<foo></foo><bar><inner></inner></bar><baz></baz>
19