/src/main/java/org/htmlunit/html/ScriptElementSupport.java
final EventTarget eventTarget = element.getScriptableObject( ) ;doc.setCurrentScript( element.getScriptableObject( ) ) ;
doc.setCurrentScript ( element.getScriptableObject ( ) ) ;
} } else if (element.getFirstChild() != null) { final Window win = page.getEnclosingWindow().getScriptableObject(); final Document doc = win.getDocument(); try { <extra_id_0> executeInlineScriptIfNeeded(element); } finally { doc.setCurrentScript(null); } if (element.hasFeature(EVENT_ONLOAD_INTERNAL_JAVASCRIPT)) {