-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Don't need a closure, jQuery ready function is enough. Use strict. #12543
Don't need a closure, jQuery ready function is enough. Use strict. #12543
Conversation
See #12544 for the fixes. |
be00bcc
to
1914619
Compare
@okonomiyaki3000 Tested like written in instructions, see with or without Patch Errors or not. So don't know what exact to look for. |
@franz-wohlkoenig It should not be difficult to find errors. Any page of the administrator should at least produce: |
I have tested this item 🔴 unsuccessfully on 1914619 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12543. |
Excellent. I think 'getAttributeNode()' has nothing to do with this file though. Where does your js console say it appears? The 'octal literals' bug is actually caused by a line like this:
You will notice that there are no octal literals here. The problem is the replacement string. It should be Anyway, keep in mind that this PR is not meant to fix anything and is not expected to be merged. It is here as a reference to expose problems which normally go unnoticed because strict mode is not used. The goal of this patch is to make things break. The fixes are in #12544. That is the PR that should actually be merged. |
@okonomiyaki3000 Used Firefox 50.1.0, thanks for explanation of this PR. Will test #12544 |
9e01ebf
to
2392574
Compare
I have tested this item ✅ successfully on 2392574 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12543. |
@okonomiyaki3000 could you please look into: #21233 Thanks |
@FPerisa You got errors. Which means the patch works because it's supposed to expose errors. But I think you're supposed to mark it as failed because we actually do not want errors. Yes, it seems to make no sense. The problem is that the errors are there already, they're just not reported because we're not in strict mode. So in fact, this PR should be Failed and the current Joomla code should also be Failed. #12544 is correct. |
I have tested this item ✅ successfully on 2392574 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12543. |
Ready to Commit after two successful tests. |
@franz-wohlkoenig Do not commit. |
@kneisel you can't have tested this patch successfully. It intentionally has errors. |
@okonomiyaki3000 you mean set RTC back on Pending? |
sorry, this is closed. |
This is fine, it was closed without merging. As it should be. We're all fine here now. |
Pull Request for Issue # .
Summary of Changes
Remove the enclosure, use the concise jQuery ready function syntax, use javascript strict mode.
Testing Instructions
Go to the administrator (Isis) and open your browser's javascript console. You may see errors when performing any action that involves javascript (like using the menu) or just by loading a page.
This PR only exposes these errors. It does not fix them. The fix is in #12544, do not merge this PR. Merge that one.
Documentation Changes Required
Nope