}
// Add a a sibling to the root element and remove the root from the parent altogether
SpanElement spanElement = Document.get().createSpanElement();
docDiv.appendChild(spanElement);
root.removeFromParent();
assertFalse(renderer.isParentOrRenderer(docDiv));
if (GWT.isProdMode()) {
// In prod mode no attempt is made to check whether root is still attached
assertTrue(renderer.isParentOrRenderer(root));