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

Request/Request.HTML execute non-javascript <script> tags as Javascript #2796

Open
Sophist-UK opened this issue Feb 23, 2018 · 1 comment
Open

Comments

@Sophist-UK
Copy link

It doesn't really matter why, but Joomla uses a script tag to store HTML using a non-standard type attribute "text/something which is not javascript or ecmascript". Mootools String.stripScript extracts all script tags regardless of whether the type attribute indicates it as javascript and attempts to execute it which is incorrect functionality.

Note: The script could equally be e.g. vbscript.

@stAn47
Copy link

stAn47 commented Dec 28, 2018

hello, it's not just joomla, but it seems that mootools provides javascript from all "script" tags including schemas + json+ld + json etc...

these are now standard since google recommends json+ld format for all schema specifications

this produces an error in javascript that breaks other parts of the site.

stan

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

No branches or pull requests

2 participants