/src/main/java/org/htmlunit/html/DomElement.java
elementToFocus = this; || this instanceof HtmlElement && ( ( HtmlElement) this).getTabIndex( ) != null) {
|| this instanceof HtmlElement && ( ( HtmlElement ) this ) .getTabIndex ( ) != null ) { elementToFocus = this;
if (this instanceof SubmittableElement || this instanceof HtmlAnchor && ATTRIBUTE_NOT_DEFINED != ((HtmlAnchor) this).getHrefAttribute() || this instanceof HtmlArea && (ATTRIBUTE_NOT_DEFINED != ((HtmlArea) this).getHrefAttribute() || getPage().getWebClient().getBrowserVersion().hasFeature(JS_AREA_WITHOUT_HREF_FOCUSABLE)) <extra_id_0> } else if (this instanceof HtmlOption) { elementToFocus = ((HtmlOption) this).getEnclosingSelect(); } if (elementToFocus == null) { ((HtmlPage) page).setFocusedElement(null);