php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81544 DOMDocument cannot correct parse <param> tag
Submitted: 2021-10-20 01:52 UTC Modified: 2021-10-20 02:20 UTC
From: 12736433 at qq dot com Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 8.0.11 OS: opensuse
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: 12736433 at qq dot com
New email:
PHP Version: OS:

 

 [2021-10-20 01:52 UTC] 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;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [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
PHP is the best language.
 [2021-10-20 02:20 UTC] requinix@php.net
-Status: Closed +Status: Not a bug
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 20:01:30 2025 UTC