1--TEST--
2dom: DOMChildNode::remove does not work on character data
3--EXTENSIONS--
4dom
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?>
13--EXPECT--
14<a/>
15