Element div = com.google.gwt.dom.client.Document.get().createDivElement();
div.setInnerHTML(html.toSafeHtml().asString());
Element ret = div.getFirstChildElement();
// Detach, in order that this element looks free-floating (required by some
// preconditions).
ret.removeFromParent();
return ret;
}
}