mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
It doesn't belong to this test case, and may actually interfere with HTMLDocument_Windows1251.phpt[1]. [1] <https://github.com/php/php-src/actions/runs/10434868303/job/28898227793>
20 lines
338 B
PHP
20 lines
338 B
PHP
--TEST--
|
|
Dom\HTMLDocument fallback encoding test
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
|
|
$dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/fallback_encoding.html");
|
|
var_dump($dom->inputEncoding);
|
|
echo $dom->saveHtml();
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(5) "UTF-8"
|
|
<!DOCTYPE html><html><head>
|
|
<meta charset="I don't exist">
|
|
</head>
|
|
<body>
|
|
</body></html>
|