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

Prevent script execution from remote source #37

Merged
merged 3 commits into from
Feb 3, 2019

Conversation

takvol
Copy link
Contributor

@takvol takvol commented May 1, 2018

This issue was referenced in #16
e.g. when remote file has some failing js, it gets executed instantly and breaks the plugin. Check https://jsfiddle.net/xgbnmf5a/
The problem arise only when using .html() in jQuery 1.8.3. The bug was fixed in 1.9.
Workaround: use innerHTML instead of .html().
See jQuery bug reports here:
https://bugs.jquery.com/ticket/13634
https://bugs.jquery.com/ticket/10470
https://bugs.jquery.com/ticket/11795

Remove scripts from remote data to prevent autoexecution of the scripts
@takvol takvol changed the title Remove scripts from remote source Prevent script execution from remote source May 2, 2018
@michael-lynch michael-lynch merged commit fb34d6d into michael-lynch:master Feb 3, 2019
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