/src/main/java/org/htmlunit/html/HtmlElement.java
final HtmlUnitScriptable document = page.getScriptableObject( ) ;final Object activeElement = doc.getActiveElement( ) ;
final Object activeElement = doc.getActiveElement ( ) ;
super.detach(); return; } final HtmlUnitScriptable document = page.getScriptableObject(); if (document instanceof HTMLDocument) { final HTMLDocument doc = (HTMLDocument) document; <extra_id_0> if (activeElement == getScriptableObject()) { if (hasFeature(HTMLELEMENT_REMOVE_ACTIVE_TRIGGERS_BLUR_EVENT)) { ((HtmlPage) page).setFocusedElement(null); } else { ((HtmlPage) page).setElementWithFocus(null);