//if the parentNode has null parentNode in IE,
//create a DocumentFragment to be the parentNode's parentNode.
if (domNode.getParentNode() == null && getBrowserVersion().isIE()) {
final DomDocumentFragment fragment = ((HtmlPage) domNode.getPage()).createDomDocumentFragment();
fragment.appendChild(domNode);
}
}
/**
* Replace all children elements of this element with the supplied value.