Bug #81544 [Opn->Csd]: DOMDocument cannot correct parse <param> tag

From: Date: Wed, 20 Oct 2021 02:16:33 +0000
Subject: Bug #81544 [Opn->Csd]: DOMDocument cannot correct parse <param> tag
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237292@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81544&edit=1 ID: 81544 User updated by: 12736433 at qq dot com Reported by: 12736433 at qq dot com Summary: DOMDocument cannot correct parse <param> tag -Status: Open +Status: Closed Type: Bug Package: DOM XML related Operating System: opensuse PHP Version: 8.0.11 Block user comment: N Private report: N New Comment: PHP is the best language. Previous Comments: ------------------------------------------------------------------------ [2021-10-20 01:52:14] 12736433 at qq dot com 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; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81544&edit=1

« previous php.bugs (#237292) next »