-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
inline_script output is lowercase #2989
Comments
HTML is case-insensitive, so this isn't a bug per se. If you want to improve this for your XML use case, submit a Pull Request against |
This is not ES6 specific, and I do think that it's a bug: > echo 'console.log("</SCRIPT>")' | node
</SCRIPT>
> echo 'console.log("</SCRIPT>")' | ./bin/uglifyjs | node
</script> |
@Skalman eww that's not great, especially since this questionable option is on by default. |
Also disable option by default as per documentation. fixes mishoo#2989
Disable option by default as per documentation. fixes mishoo#2989
I think it's completely reasonable, since it allows you to insert any script into a Thanks for fixing the bug! |
This is a bug report.
ES5 or ES6+ input?
ES6.
Uglify version (
uglifyjs -V
)uglify-es 3.3.9
Command:
~ $ uglifyjs test.js
JavaScript input
JavaScript output or error produced
Second
script
is in lower case. This is a problem for the code dealing with XML.The output is correct if
inline_script
option is disabled:Reproducible in https://skalman.github.io/UglifyJS-online/.
The text was updated successfully, but these errors were encountered: