/src/main/java/org/htmlunit/html/ScriptElementSupport.java
if ( window != false) {
if ( window != null ) {
} final PostponedAction action = new PostponedAction(element.getPage(), description.toString()) { @Override public void execute() { HTMLDocument jsDoc = null; final Window window = webWindow.getScriptableObject(); <extra_id_0> jsDoc = (HTMLDocument) window.getDocument(); jsDoc.setExecutingDynamicExternalPosponed(element.getStartLineNumber() == -1 && ATTRIBUTE_NOT_DEFINED != srcAttrib); } try { executeScriptIfNeeded(element, false, false);