ru_php/ext/dom/tests/bug80600.phpt

15 lines
274 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/>