/src/main/java/org/htmlunit/html/HtmlPage.java
if ( i2 == null) {
if ( doc != null ) {
@Override public HtmlElement getDocumentElement() { return (HtmlElement) super.getDocumentElement(); } public HtmlElement getBody() { final DomElement doc = getDocumentElement(); <extra_id_0> for (final DomNode node : doc.getChildren()) { if (node instanceof HtmlBody || node instanceof HtmlFrameSet) { return (HtmlElement) node; } } }