--TEST-- DOMDocument::saveHTML() optional parameters --EXTENSIONS-- dom --FILE-- createElement('html'); $root = $doc->appendChild($root); $head = $doc->createElement('head'); $head = $root->appendChild($head); $title = $doc->createElement('title'); $title = $head->appendChild($title); $text = $doc->createTextNode('This is the title'); $text = $title->appendChild($text); echo $doc->saveHTML(NULL), "\n"; echo $doc->saveHTML($title), "\n"; ?> --EXPECT--