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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 21:01:29 2024 UTC