1--TEST--
2DOMDocument::saveHTML() vs DOMDocumet::saveXML()
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$d = new DOMDocument();
8$str = <<<EOD
9<html>
10<head>
11</head>
12<body>
13<p>Hi.<br/>there</p>
14</body>
15</html>
16EOD;
17$d->loadHTML($str);
18$e = $d->getElementsByTagName("p");
19$e = $e->item(0);
20echo $d->saveXml($e),"\n";
21echo $d->saveHtml($e),"\n";
22?>
23--EXPECT--
24<p>Hi.<br/>there</p>
25<p>Hi.<br>there</p>
26