Bug #81544 [NEW]: DOMDocument cannot correct parse <param> tag

From: Date: Wed, 20 Oct 2021 01:52:14 +0000
Subject: Bug #81544 [NEW]: DOMDocument cannot correct parse <param> tag
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237291@lists.php.net to get a copy of this message
From: 12736433 at qq dot com Operating system: opensuse PHP version: 8.0.11 Package: DOM XML related Bug Type: Bug Bug description:DOMDocument cannot correct parse <param> tag 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 bug report at https://bugs.php.net/bug.php?id=81544&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81544&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81544&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81544&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81544&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81544&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81544&r=support Expected behavior: https://bugs.php.net/fix.php?id=81544&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81544&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81544&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81544&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81544&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81544&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81544&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81544&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81544&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81544&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81544&r=mysqlcfg

« previous php.bugs (#237291) next »