1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00
Files
archived-php-src/ext/dom/tests/bug80600.phpt
2021-06-29 17:13:02 +02:00

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/>