-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing global variables in separate scripts #874
Comments
Will have a look and maybe add a test case but if fear this works in general and is related to the jQuery initialization |
The above example is simplified. I checked putting a |
@kincsescsaba Have just added a small test implementation to the test suite. Can you please have a look at the test and check if i got your problem right. |
@kincsescsaba still there? |
@rbri Sorry for the delay; I'm here now and just started to check |
I have an HTML loading multiple scripts:
scriptDeclaringAGlobalVar.js:
scriptReadingAGlobalVar.js:
Though the global variable is declared in the first script, and even
$(document).ready
was used, it can't be reached, I get errors like this in HtmlUnit:The same works fine in browsers.
The text was updated successfully, but these errors were encountered: