mirror of
https://github.com/php/php-src.git
synced 2026-04-19 05:51:02 +02:00
14 lines
271 B
PHP
14 lines
271 B
PHP
--TEST--
|
|
dom: DOMChildNode::remove does not work on character data
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
|
|
$doc = new \DOMDocument();
|
|
$doc->loadXML('<a><!-- foo --></a>');
|
|
$doc->documentElement->firstChild->remove();
|
|
echo $doc->saveXML($doc->documentElement);
|
|
--EXPECT--
|
|
<a/>
|