Skip to content
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

Update prelude.js to eval scripts correctly #496

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

rayslava
Copy link
Contributor

@rayslava rayslava commented Feb 4, 2025

At least in Firefox the documentScripts[i].src is read as "" when there's no src attribute, this leads to attempt to evaluate the whole document HTML.

Without this I get error

Unexpected EOF [jscl.js:47215:108](http://172.18.0.2:8080/jscl.js)
Uncaught Error: Variable <!DOCTYPE is unbound.

when the prelude.js attempt to evaluate the whole document instead of script.

At least in Firefox the documentScripts[i].src is read as "" when there's no
src attribute, this leads to attempt to evaluate the whole document HTML.
@davazp davazp merged commit 0a375b7 into jscl-project:master Feb 4, 2025
1 check passed
@rayslava
Copy link
Contributor Author

rayslava commented Feb 5, 2025

And the GitHub Pages action failed, it seems the ssh key needs an update.

@rayslava rayslava deleted the eval-fix branch February 5, 2025 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants