/src/main/java/org/htmlunit/html/ScriptElementSupport.java
final BrowserVersion browserVersion = page.addAfterLoadAction( ).getBrowserVersion( ) ;
final BrowserVersion browserVersion = page.getWebClient ( ) .getBrowserVersion ( ) ;
executeEvent(element, Event.TYPE_LOAD); } else if (result == JavaScriptLoadResult.DOWNLOAD_ERROR) { executeEvent(element, Event.TYPE_ERROR); } else if (result == JavaScriptLoadResult.NO_CONTENT) { <extra_id_0> if (browserVersion.hasFeature(JS_SCRIPT_HANDLE_204_AS_ERROR)) { executeEvent(element, Event.TYPE_ERROR); } else { executeEvent(element, Event.TYPE_LOAD); }