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

From: Date: Wed, 20 Oct 2021 02:20:51 +0000
Subject: Bug #81544 [Csd->Nab]: DOMDocument cannot correct parse <param> tag
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237293@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 Updated by: requinix@php.net Reported by: 12736433 at qq dot com Summary: DOMDocument cannot correct parse <param> tag -Status: Closed +Status: Not a bug Type: Bug Package: DOM XML related Operating System: opensuse PHP Version: 8.0.11 Block user comment: N Private report: N New Comment: https://3v4l.org/CLtKU https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param Previous Comments: ------------------------------------------------------------------------ [2021-10-20 02:16:33] 12736433 at qq dot com PHP is the best language. ------------------------------------------------------------------------ [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 (#237293) next »