mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

For rationale, see https://github.com/php/php-src/pull/6787 Make extension checks lowercase, add a special case for opcache that has internal name not matching .so filename. Extensions migrated in part 2: * dom * exif * fileinfo * ffi
25 lines
385 B
PHP
25 lines
385 B
PHP
--TEST--
|
|
DOMDocument::saveHTML() vs DOMDocumet::saveXML()
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
$d = new DOMDocument();
|
|
$str = <<<EOD
|
|
<html>
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<p>Hi.<br/>there</p>
|
|
</body>
|
|
</html>
|
|
EOD;
|
|
$d->loadHTML($str);
|
|
$e = $d->getElementsByTagName("p");
|
|
$e = $e->item(0);
|
|
echo $d->saveXml($e),"\n";
|
|
echo $d->saveHtml($e),"\n";
|
|
?>
|
|
--EXPECT--
|
|
<p>Hi.<br/>there</p>
|
|
<p>Hi.<br>there</p>
|