|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2021-01-06 20:02 UTC] nikic@php.net
-Assigned To:
+Assigned To: beberlei
[2021-01-07 09:42 UTC] beberlei@php.net
[2021-02-01 22:14 UTC] beberlei@php.net
[2021-02-02 19:31 UTC] beberlei@php.net
[2021-02-02 19:31 UTC] beberlei@php.net
-Status: Assigned
+Status: Closed
[2021-02-12 16:16 UTC] beberlei@php.net
[2021-02-15 09:38 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 16:00:01 2025 UTC |
Description: ------------ CharacterData nodes implement the new DomChildNode interface, but the DOMChildNode::remove() method doesn't work. See the provided test script. Text, comments and CDATA nodes should be removed. They are not. Test script: --------------- <php $doc = new \DOMDocument(); $doc->loadXML('<a>foo</a>'); $doc->documentElement->firstChild->remove(); echo $doc->saveXML($doc->documentElement); Expected result: ---------------- <a></a> Actual result: -------------- <a>foo</a>