xref: /PHP-8.2/ext/dom/tests/bug80600.phpt (revision ac18dd0d)
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--EXPECT--
13<a/>
14