|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-10-20 02:16 UTC] 12736433 at qq dot com
-Status: Open
+Status: Closed
[2021-10-20 02:16 UTC] 12736433 at qq dot com
[2021-10-20 02:20 UTC] requinix@php.net
-Status: Closed
+Status: Not a bug
[2021-10-20 02:20 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 30 15:00:01 2025 UTC |
Description: ------------ Run the test script can find, only <param> incorrect, others right. Test script: --------------- <?php $html = '<A>AAA</A> <B>BBB</B> <param>Param</param> <c>CCC</c> <span>span</span> <div>div</div> <notbug>notbug</notbug> <test>test</test>'; $doc = new DOMDocument('1.0', 'UTF-8'); $doc->preserveWhiteSpace = false; libxml_use_internal_errors(true); $doc->recover = true; $doc->strictErrorChecking = false; $doc->loadHTML($html); echo $doc->saveXML() . PHP_EOL; echo $doc->saveHTML() . PHP_EOL;