1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00
Files
archived-php-src/ext/dom/tests/bug80600.phpt
T
2021-03-15 23:45:37 +01:00

14 lines
301 B
PHP

--TEST--
dom: DOMChildNode::remove does not work on character data
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$doc = new \DOMDocument();
$doc->loadXML('<a><!-- foo --></a>');
$doc->documentElement->firstChild->remove();
echo $doc->saveXML($doc->documentElement);
--EXPECTF--
<a/>