blob: e462965a98eab556a2d48ec8740cf34b5ee35414 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--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/>
|