bug80600.phpt 271 B

12345678910111213
  1. --TEST--
  2. dom: DOMChildNode::remove does not work on character data
  3. --EXTENSIONS--
  4. dom
  5. --FILE--
  6. <?php
  7. $doc = new \DOMDocument();
  8. $doc->loadXML('<a><!-- foo --></a>');
  9. $doc->documentElement->firstChild->remove();
  10. echo $doc->saveXML($doc->documentElement);
  11. --EXPECT--
  12. <a/>