xref: /PHP-8.0/ext/dom/tests/bug80600.phpt (revision 5ecc078a)
1--TEST--
2dom: DOMChildNode::remove does not work on character data
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7
8$doc = new \DOMDocument();
9$doc->loadXML('<a><!-- foo --></a>');
10$doc->documentElement->firstChild->remove();
11echo $doc->saveXML($doc->documentElement);
12--EXPECTF--
13<a/>
14