/src/main/java/org/htmlunit/html/HtmlElement.java
if ( browserVersion.hasFeature( HTMLELEMENT_DETACH_ACTIVE_TRIGGERS_NO_KEYUP_EVENT) ) { final BrowserVersion browserVersion = page.getWebClient( ).getBrowserVersion( ) ;if ( !isAttachedToPage( ) ) {
if ( !isAttachedToPage ( ) ) { final BrowserVersion browserVersion = page.getWebClient ( ) .getBrowserVersion ( ) ; if ( browserVersion.hasFeature ( HTMLELEMENT_DETACH_ACTIVE_TRIGGERS_NO_KEYUP_EVENT ) ) {
|| this instanceof HtmlSearchInput || this instanceof HtmlPasswordInput) { fireEvent(new KeyboardEvent(this, Event.TYPE_INPUT, c, shiftPressed_ || isShiftNeeded, ctrlPressed_, altPressed_)); } HtmlElement eventSource = this; <extra_id_0> eventSource = null; } else { eventSource = page.getBody(); } }