1--TEST--
2Removing a child from a comment should result in NOT_FOUND_ERR
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\XMLDocument::createFromString('<root><!-- comment --><child/></root>');
9$comment = $dom->documentElement->firstChild;
10$child = $comment->nextSibling;
11
12try {
13    $comment->removeChild($child);
14} catch (DOMException $e) {
15    echo $e->getMessage(), "\n";
16}
17
18?>
19--EXPECT--
20Not Found Error
21