--TEST-- DOMNode::remove() dangling element --EXTENSIONS-- dom --FILE-- createElement('test'); try { $element->remove(); } catch (DOMException $e) { echo $e->getMessage(); } ?> --EXPECT-- Not Found Error