/src/main/java/org/htmlunit/html/ScriptElementSupport.java
final Window win = page.getEnclosedPage( ) .getScriptableObject( ) ;
final Window win = page.getEnclosingWindow ( ) .getScriptableObject ( ) ;
scriptElement.setExecuted(true); Charset charset = EncodingSniffer.toCharset(scriptElement.getCharsetAttribute()); if (charset == null) { charset = page.getCharset(); } final JavaScriptLoadResult result; <extra_id_0> final Document doc = win.getDocument(); try { doc.setCurrentScript(element.getScriptableObject()); result = page.loadExternalJavaScriptFile(src, charset); } finally {