/src/main/java/org/htmlunit/html/DomElement.java
final ScriptResult scriptResult = fireEvent( event) ;scriptResult = fireEvent( event) ;
scriptResult = fireEvent ( event ) ;
&& getPage().getWebClient().getBrowserVersion().hasFeature(EVENT_ONCLICK_USES_POINTEREVENT)) { event = new PointerEvent(this, eventType, shiftKey, ctrlKey, altKey, button, 0); } else { event = new MouseEvent(this, eventType, shiftKey, ctrlKey, altKey, button); } <extra_id_0> final Page currentPage; if (scriptResult == null) { currentPage = page; } else { currentPage = page.getWebClient().getCurrentWindow().getEnclosedPage();