Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
jQuery 1.4 is in alpha testing. It should be released before Drupal 7. We should upgrade to jQuery 1.4 once it's released.
Comment | File | Size | Author |
---|---|---|---|
#127 | 653580.124.patch | 130.55 KB | cosmicdreams |
#125 | jquery142.patch | 130.97 KB | casey |
#103 | Chrome-1.png | 188.39 KB | cosmicdreams |
#95 | 653580.patch | 131.26 KB | RobLoach |
#91 | 653580.patch | 131.02 KB | RobLoach |
Comments
Comment #1
timmillwoodJust tried installing D7 with jQuery 1.4 and got the following error.
So set status to needs work.
Comment #2
mfer CreditAttribution: mfer commentedThis patch just drops in jQuery 1.4a2 (alpha 2). If we find an issue in Drupal we should make sure this isn't an issue in the jQuery 1.4 alpha before we try to fix it in Drupal.
Comment #3
mfer CreditAttribution: mfer commentedThis fails in the installer as seen in #1.
Oh, and according to the blog post on jQuery 1.4 the plan is for it to be released on Jan 14th. That's one day before the Drupal 7 alpha.
Comment #4
webchickHm. I do think we need Drupal 7 to ship with jQuery 1.4. Otherwise, it'd be the equivalent of bundling a brand new version of some operating system with Drupal 5. When the new version comes out, community support wanes, and new plugins only come out for the new version. It's also supposed to be faster, and since D7 ships with more JS than any release to-date, it'd be good for performance.
Tagging as something I'd like us to get into Alpha 1. Though obviously, to do that we need folks to help debug these issues ASAP to make the transition as easy as possible on the 15th. This also gives us a chance to be good open source citizens and test jQuery for bugs before they ship.
Comment #5
webchickHmmm. Exceeeept... What will this to do jQuery UI? It looks like they're still shipping with 1.3.2 compatibility....
Comment #6
casey CreditAttribution: casey commented#3
jquery.js
Native JSON parser gives a syntax error.
Comment #7
asimmonds CreditAttribution: asimmonds commentedI don't think we are encoding the JSON properly, in includes/common.inc/drupal_json_encode()
ie
should be
There's a open issue on this, #479368: D7: Create RFC compliant HTML safe JSON. I've just rerolled the patch for it.
With that patch applied, the install is able to complete
Comment #8
asimmonds CreditAttribution: asimmonds commentedPatch as #2 with a small change to tabledrag.js to get the table row dragging working again (possibly the result of a jQuery bug...)
Comment #9
int CreditAttribution: int commentedComment #10
Jolidog CreditAttribution: Jolidog commented@webchick
I believe jquery ui 1.7.2 and the 1.8 series will support both jquery 1.3.2 and the 1.4 series, so I'm guessing there's no problem there. We just have to chose with version to go with, IMHO it should be the 1.8 series, since the upgrade from 1.7.2 to 1.8 should be easy.
Info gathered from this mailing list: http://www.mail-archive.com/jquery-ui@googlegroups.com/msg11933.html
Comment #11
RobLoachDon't forget CHANGELOG.txt and system_library :-) .
Comment #12
mfer CreditAttribution: mfer commentedI'll leave it for the next change by don't forget the $Id$ line at the top of jquery.js.
Comment #13
RobLoachThe new jQuery API site has launched with details on what signatures have changed in 1.4.
Comment #14
webchickThanks for looking into the jQuery UI issue, Jolidog.
IMO we should make a sister issue then ASAP about jQuery 1.8 and start working through issues. I don't suppose that'll be out the 14th, too? ;)
Comment #15
Damien Tournoud CreditAttribution: Damien Tournoud commentedOpened #679036: Upgrade to jQuery UI 1.8.
[comment edited by webchick to point to older issue; new one was marked duplicate.]
Comment #16
Damien Tournoud CreditAttribution: Damien Tournoud commentedFor the record: the bug in
tabledrag.js
is our own. It appears only in jQuery 1.4 because jQuery now supports before / after / replaceWith on disconnected nodes.Comment #17
sunsubscribing
Comment #18
mfer CreditAttribution: mfer commentedI just want to point out http://code.jquery.com/jquery-1.4.js. It's up. The release and blog post are coming tomorrow on the 4 year anniversary of jQuery.
Comment #19
int CreditAttribution: int commentedWe should use the min version..
http://code.jquery.com/jquery-1.4.min.js
Comment #20
mikl CreditAttribution: mikl commentedCommit now and ask questions later?
Comment #21
babbage CreditAttribution: babbage commentedRe-rolled #11 against current head, incorporating #12, and with jQuery 1.4 as linked by Matt in #18 (EDIT: or rather, using the min version linked in #19 actually). Easy re-roll, not wanting to take credit for other's work but here's the patch to keep things moving... :)
Comment #22
aspilicious CreditAttribution: aspilicious commentedlast line
- 'version' => '1.3.2',
+ 'version' => '1.4a2',
I think that has to be 1.4
Comment #23
babbage CreditAttribution: babbage commentedAbsolutely (#22). Missed that.
Comment #24
nicholasThompsonRegarding the json error, I don't know if it's relevant but I noticed a problem with it in D6.. It escaped single quotes when it shouldn't have. The only work around I found was to use PHP 5.2's native json encoding..,
see: http://drupal.org/node/443090#comment-2245630
Comment #25
mfer CreditAttribution: mfer commentedI ran through the patch in FF 3.5 and Safari 4. Everything seems to work. What we need is a manual QA script that covers everything for testers to follow. Much more testing is required.
Comment #26
mfer CreditAttribution: mfer commentedAI started a set of manual tests at http://groups.drupal.org/node/44450. The tests are just a start and we need to have many more of them.
Comment #27
mfer CreditAttribution: mfer commentedWe should take advantage of jQuery native methods/features where possible in this update as well. Changes are available at http://api.jquery.com/category/version/1.4/
I can think of at least one place we have a method that does something 1.4 now provides... I think.
Comment #28
RobLoach@mfer:
jQuery's .live() now supports all JavaScript events, as well as custom events. So we could essentially replace the bulk of the behaviour system with it to increase JavaScript performance.
Comment #29
mfer CreditAttribution: mfer commented@Rob Loach - I think .live() will be great to use. But, behaviors operate differently than .live(). They often have setup and changes that aren't really events to look for which bubble up the DOM.
Comment #30
sunHm, not entirely. Didn't look at the source code, but I guess there is still no special event for "attach" (load) and "detach" (move/serialize/unload). Many of our behaviors act on the sole insertion/injection of DOM elements, and if the selector is found, the DOM get modified. I'd love to replace our attaching/detaching behaviors system entirely with .live() and .die(), but it seems that we need to talk to jQuery developers, so they .trigger() certain, custom events for our case.
Anyway, we absolutely want to get jQuery 1.4 into D7.
Comment #31
RobLoachI've added Chrome to the jQuery 1.4 tests and went through some of them. I think the best way to proceed with this issue is to make sure all the tests work, get jQuery 1.4 committed, and then look at some places where the jQuery 1.4 API could help us clean up some of the code in individual issues.
Comment #32
webchickI'm not real excited to go on a big code-refactoring treasure hunt after this. If there are a couple of obvious patterns we can apply, or a particular place or two where we get really nice performance benefits, then great, but we need to focus on getting D7 out the door.
Comment #33
te-brian CreditAttribution: te-brian commentedI'm running the jQuery 1.4 tests in IE 8. I'll update this post with any notes.
Notes:
- node/add/article: Vertical tabs are fine, but checking "Provide a menu link" does not reveal the menu options.
- admin/config/search/clean-urls: Not sure what I'm looking for here.
Comment #34
sunI agree with webchick. It's far too late to do any further changes. All we want to do is to get 1.4 in - so D7 stays cutting edge, and contrib can leverage it. (contrib can replace JavaScripts with better ones, if required)
Comment #35
aspilicious CreditAttribution: aspilicious commentedThis is alrdy broken #684602: IE BUG 1: menu options don't show up automatically, without the upgrade...
Comment #36
babbage CreditAttribution: babbage commentedWow. Check out those performance improvements in 1.4: http://jquery14.com/day-01/jquery-14
Comment #37
mfer CreditAttribution: mfer commentedI would suggest committing jQuery 1.4 after the alpha. jQuery UI 1.7 is not currently compatible with jQuery 1.4 in some places. jQuery 1.8 will be out in 14 days which is compatible.
Comment #38
webchickYes, confirmed. This is not going to go into alpha1 at this point. That doesn't mean you should stop testing, though. :) There's always the next one. ;)
Comment #39
andypostPlease dont forget about Update to latest jQuery Form Plugin which brings a lot of troubles with #434394: 'HTTP error 0 occurred' on image upload and #240777: Attach: An HTTP Error 0 occurred (on file upload)
Comment #40
casey CreditAttribution: casey commented#609622: Keep jQuery Form up to date
Comment #41
seutje CreditAttribution: seutje commentedsubscribe
Comment #42
ben_alman CreditAttribution: ben_alman commentedWhile testing everything in jQuery 1.4 is a great idea, I don't feel that it's quite ready for production use, due to a bug I've encountered with namespacing custom events (like the hashchange event that BBQ uses). That being said, the jQuery team is working on getting 1.4.1 out within a week or so, with 1.4.2 within a month or so, so hopefully the list of 1.4 bugs will be fixed in short order.
Either way, jQuery BBQ (which was just updated to v1.1) has been designed to support jQuery 1.4 from the very beginning, and has been fully unit tested in both 1.3.2 and 1.4a2.
Comment #43
mfer CreditAttribution: mfer commentedin drupal.js we added $.isObject with a note that when jQuery 1.4 landed we should swap it out with the function in jQuery 1.4. The attached patch adds that to the rest of the changes.
Comment #44
amc CreditAttribution: amc commentedGood reference article here, including a short list of upgrade gotchas: http://www.sitepoint.com/blogs/2010/01/18/jquery-14-released/
Comment #45
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedHere is the jQuery team's list of backward incompatible changes:
http://jquery14.com/day-01#backwards
Comment #46
mcrittenden CreditAttribution: mcrittenden commentedSub.
Comment #47
Nick Lewis CreditAttribution: Nick Lewis commentedjQuery UI is broken in 1.4 at the moment. I wandered over to #jquery and the room directed to me http://paulirish.com for answers. Here's what I found out:
1. http://blog.jqueryui.com/2009/12/jquery-ui-18a2/ is the best place for us to go for the moment if we want to upgrade 1.4 and want to minimize jquery UI's brokenness
2. they are sympathetic about our needs, and will use *various measures* to expedite the release of of 1.8 beta. I mention alpha 3, and they corrected: beta 1.
3. the final release of 1.8 is nothing that anyone will go on record about estimating (obviously), but there's good reason to believe that it would happen within our alpha stage. Moreover we use a fairly limited number of their many features -- and they are the rather commonly used ones. So I have no worries.
Regardless, our upgrade to 1.4 will depend on an upgrade of jquery UI. That is without question
Comment #50
mfer CreditAttribution: mfer commented@Nick Lewis - In the keynote for the release of jQuery 1.4 they gave a rough timetable for jQuery UI 1.8 coming out. I think the plan was at the end of the 14 days of jQuery. At the very least they were would be a point release of 1.7 that would work with jQuery 1.4.
We are tracking the jQuery UI issue at #679036: Upgrade to jQuery UI 1.8
Because we use such a limited set of jQuery UI features, when I tested dropping in jQuery 1.4 it seemed to work just fine. Well, as fine as jQuery 1.3. I'm not sure if that's a good thing because we have to maintain a massive library that we are only using a small piece of. But, that's another issue all together.
Comment #51
Nick Lewis CreditAttribution: Nick Lewis commented@mfer -- i did come across some reported bugs involving modals that open/close repeatedly, but to my knowledge we're using %2 of it, agreed. Good news that this patch can go in without updating UI. Obviously, we'll absolutely have to upgrade it if we ship with 1.4. I'd put my bets on 14 days from now for the final release [wink, wink].
Comment #52
mfer CreditAttribution: mfer commented@Nick Lewis I would wait to put 1.4 in until UI 1.8 is ready to go in so they can go in at the same time. That's my goal :)
Comment #53
Nick Lewis CreditAttribution: Nick Lewis commented@mfer - 10-4 - let me know if you need a peon to help out. Failure is not an option for this patch. <----captain obvious
Comment #54
marvil07 CreditAttribution: marvil07 commentedI just rerolled the patch to let it apply
Comment #55
mfer CreditAttribution: mfer commentedThe line with ; $Id$ a the start of jquery.js was dropped. That should be added back in.
Comment #56
marvil07 CreditAttribution: marvil07 commentedupps :-p
.. fix comment on #55
Comment #59
axyjo CreditAttribution: axyjo commentedPasses now. That last failure was somewhat strange.
Comment #60
dsarch CreditAttribution: dsarch commentedIs there any plan to backport it to Drupal6 ? Or should i stick with drupal_update for now ?
Thanks for the work in this patch =)
Comment #61
mcrittenden CreditAttribution: mcrittenden commented@dasndrade No, this won't be backported to D6.
Comment #62
mfer CreditAttribution: mfer commented@dsandrade jquery update should have an update in the future. The big issue is all the js in D6 core needs to be checked out and updated where it's needed.
Comment #63
zilverdistel CreditAttribution: zilverdistel commentedsubscribing
Comment #64
catchThis will apparently fix #684602: IE BUG 1: menu options don't show up automatically, marked that as postponed.
Comment #65
mfer CreditAttribution: mfer commentedThe attached patch updates to the newly released jQuery 1.4.1.
Comment #66
int CreditAttribution: int commentedpatch #65
'version' => '1.4.1',
Comment #67
mfer CreditAttribution: mfer commentedoops, here's an update to the new version numbers.
Comment #68
webchickCould someone give me a feel for how close this is to RTBC? Is it dependent on #679036: Upgrade to jQuery UI 1.8?
Comment #69
mfer CreditAttribution: mfer commented@webchick jQuery 1.4 has some API changes that affect jQuery UI. jQuery UI 1.8 will be the first release to completely support jQuery 1.4. Today is when 1.8RC1 came out.
It doesn't look like we are using any of the features in jQuery UI that contain these API changes. But, I was holding off so we could do these two issues together. If we are willing to have a few day gap between committing these two we can drive this one home.
The current status of testing can be seen at http://groups.drupal.org/node/44450. The bottom few lines are ones that were recently added and still need more testing. Anyone who has more places to test, it would be appreciated if they were added.
Comment #70
mfer CreditAttribution: mfer commentedAfter doing some additional testing I found some issues between jQuery 1.4.1 and the version of jQuery UI we have in core. These issues are specific to the overlay. So, I'd suggest we continue to hold until jQuery 1.8 is finally released.
Comment #71
casey CreditAttribution: casey commented$.isObject defined in drupal.js isn't the same as jQuery.isPlainObject(). isPlainObject only returns true if given variable is created using "{}" or "new Object"
A jQuery set for example is no plain object. So replacing calls to $.isObject with jQuery.isPlainObject() isn't going to work everywhere (e.g. overlay-parent.js).
Besides that overlay seems to work with patches from here and #679036: Upgrade to jQuery UI 1.8
Comment #72
Pasquallesubscribe
Comment #73
nevergone CreditAttribution: nevergone commentedI would love to see this in core. :)
Comment #74
casey CreditAttribution: casey commentedper #71 (forgot to change status)
Comment #75
mfer CreditAttribution: mfer commented@casey, good catch on the isObject difference. The note in Drupal.js pointing to the jQuery version should be removed. What is not call .isPlainObject is what .isObject used to be called. It was renamed a couple times and landed on .isPlainObject. But, there are differences that matter here.
Comment #76
jide CreditAttribution: jide commentedsub
Comment #77
Remon CreditAttribution: Remon commentedsubscribe
Comment #78
int CreditAttribution: int commentedjQuery 1.4.2 Released jQuery 1.4.2 Min
jQuery UI 1.8RC2 Released jQuery UI 1.8RC2
Comment #79
bgm CreditAttribution: bgm commentedWith the latest D7 dev snapshot from today, I could use jQuery 1.4.2 (from #78) fine. I tested the installation, admin sections, uploaded a file, ran update.php.
However, I couldn't test jQuery UI 1.8RC2. I tried to upgrade, but the admin overlay wouldn't work anymore. Although I think it's just that I didn't upgrade it correctly. Can anyone confirm?
matt, from the D7 code sprint in Montreal.
Comment #80
mfer CreditAttribution: mfer commented@bgm jquery 1.4.2 with jquery 1.7 has bugs. known bugs.
Comment #81
danmasq CreditAttribution: danmasq commentedsubscribe
Comment #82
casey CreditAttribution: casey commented@bgm you probably didn't upgrade correctly as I tested overlay succesfully with jq 1.4 and jq ui 1.8 (see #71)
Comment #83
RobLoachMaybe we should update to jQuery UI 1.8rc2 during the update to jQuery 1.4 then.... Don't forget the images.
Comment #84
effulgentsia CreditAttribution: effulgentsia commentedSubscribing. I haven't been following this issue at all, so I'm not gonna set it to "needs review", but I am curious what bot thinks of #83, so I'm looking forward to it reaching "needs review" status. I'm especially interested in how this will affect #561858: [Tests added] Fix drupal_add_js() and drupal_add_css() to work for AJAX requests too by adding lazy-load to AJAX framework.
Comment #85
int CreditAttribution: int commentedComment #87
RobLoachI moved the Overlay's use of isPlainObject() back to isObject(), and it's working again. Yay!
Comment #89
mfer CreditAttribution: mfer commented@Rob Loach - jQuery UI 1.8 is expected to be out any day now according to their latest blog entry. Also, the jQuery.cookie you dropped in is uncompressed. The one that was there was minified. Hopefully the one they ship with jQuery UI 1.8 will be compressed. If not we shouldn't use that file.
Comment #90
marvil07 CreditAttribution: marvil07 commentedHere is a patch updating the work already done to jquery 1.4.2
@Rob Loach: IMHO we do not want to mix this with #679036: Upgrade to jQuery UI 1.8
Comment #91
RobLoachThe Overlay wasn't resizing with just isPlainObject(). Switching to the following made the Overlay work appropriately...
Comment #92
marvil07 CreditAttribution: marvil07 commentedGreat! no more overlay problem, thanks :-)
Comment #93
RobLoachSomething got messed with that patch... jquery.js is not complete.
Comment #94
casey CreditAttribution: casey commentedEh... isPlainObject() matches objects that are created using "{}" or "new Object". self.$iframeBody is a jquery set and thus not one of those.
Would do the same.
Comment #95
RobLoachCasey to the rescue!
Just uploaded the first Drupal 7 module to require jQuery 1.4: YoxView ;-) . Heard about it from the jQuery Podcast from yesterday and couldn't do anything until there was a Drupal module for it!
Comment #96
q0rban CreditAttribution: q0rban commentedsubscribe
Comment #97
pwolanin CreditAttribution: pwolanin commentedsubscribe
Comment #98
Gik000 CreditAttribution: Gik000 commentedGuys sorry for my noobness...
i need to run accordion jquery (1.4.2) menu on my Drupal 6 (jq 1.2.6)...
but i do not understand how to obtain an upgrade of my jquery.
I understood that there is an incompatibility and that theese patches are made for correct it...
but how can i use it?
what "subscribe" means?
thank you all would help me.
Comment #99
Pasqualle@Gik000:
http://drupal.org/project/jquery_update
#685060: Get ready for 1.4
http://3281d.com/projects/improving-subscriptions
Comment #100
grendzy CreditAttribution: grendzy commented#95 worked well for me on Safari 4 and FF 3.0. I tested menu drag, blocks, overlay, and fieldsets.
Comment #101
cosmicdreams CreditAttribution: cosmicdreams commentedI'm getting some weird issues with this patch + overlay. I'm going to look at what's going more extensively and report back.
Sorry, the error I found is related to #535066: Use CSS3 / IE filter to render toolbar shadow not this patch.
Comment #102
grendzy CreditAttribution: grendzy commentedcosmicdreams: make sure you clear your browser cache after applying the patch. I had a weird issue where overlays wouldn't scroll because of that.
Comment #103
cosmicdreams CreditAttribution: cosmicdreams commented@grendzy: Thank for the tip. Your suggestion of clearing my browser cache made me think of trying to flush the site's cache by going to /admin/config/development/performance and clicking the clear cache button. That cleared the issue I was having, which for sake of clarity I'll upload here:
Now, I knew this wasn't a browser cache issue because I have my cache disabled on my Firefox. Also I am baffled why Drupal would intentionally force a "site administrator" (read: non-programmer) to flush the cache of a site to simply get a module to work the way it should.
My scenario:
installed with default install profile
turned overlay off
applied patch
turned overlay on
found issue
I'll go back to testing your issue now.
Comment #104
cosmicdreams CreditAttribution: cosmicdreams commentedI keep finding issues that seem to related to this patch but actually exist before the patch is applied. It's really difficult for me to give this patch a proper testing when there are so many javascript related issues in the CVS right now.
I'm going to see if someone has created issues for things I'm seeing.
Comment #105
cosmicdreams CreditAttribution: cosmicdreams commentedThe main issue that kept me from testing this patch is this: #732524: Dynamic Menu Management is broken with overlay on
Comment #106
rfaysubscribing
Comment #107
casey CreditAttribution: casey commented@cosmicdreams Please stay ontopic. Those issues aren't related.
I think we should commit patch #95 and work from there.
Comment #108
kkaefer CreditAttribution: kkaefer commentedsubscribe
Comment #109
cosmicdreams CreditAttribution: cosmicdreams commented@casey: Can you help steer me onto the right path here?
What should be the testing procedure that properly tests this patch. What proves the patch's success or failure?
Comment #110
casey CreditAttribution: casey commentedThis issue is only about upgrading to jquery 1.4. The issues you mention also occur without this patch, so they aren't related.
Comment #111
cosmicdreams CreditAttribution: cosmicdreams commented@casey: In testing this patch I think the goal should be to prove that applying this patch does not break functionality on the site. That is a difficult task if functionality that depends on the jQuery library is already broken. True, we can wash our hands of it and say, it was broken before and its broken now, so there has been no change, but from my relatively fresh perspective of these matters it seems like we are just confounding our efforts to fix these javascript-related issues by applying this patch without knowing it's full impact.
That is why I attempted to test so many seemingly unrelated javascript-enabled behaviors on the site. I'm trying to gain a sense of jQuery 1.4's impact on the correctness of code. My frustration is caused by how frequently my tests are unable to show informative results.
Now, if everyone else thinks its really not important to know if this patch degrades, improves, breaks, or fixes jQuery functionality during an alpha development period. Then I'll drop by objection and simplly test whether or not this patch replaces the old jQuery library with the new one.
Comment #112
casey CreditAttribution: casey commented@cosmicdreams The least impact of this patch we know of is that we'll have an up-to-date jquery and can use it's new functionality and enjoy its improved performance. Any javascript/jquery issues that we already know of or will encounter any time can be solved with jquery 1.4 if it could be with jquery 1.3. I don't think we should try to resolve all those issue at once, because we simply cannot.
Drupal 7 is ready for jQuery 1.4
Comment #113
Georg CreditAttribution: Georg commentedI agree with casey.
Once we upgraded JQuery, we can fix JQuery related issues to work with 1.4. If we would first fix the issues, we might have do that again, when we upgrade JQuery to 1.4
Because we seem not to break more, than was already broken, I'd say, we move on and upgrade JQuery.
Comment #114
catchWorks for me as well, we don't have automated tests for javascript stuff, so the only way we can find regressions is by people clicking around. Many more people will do that from dev releases and alpha snapshots than this patch.
Comment #115
cosmicdreams CreditAttribution: cosmicdreams commentedI drop my objection to this patch. Looks like there are other patches that are depending on this one. Casey and catch make good sense here. Alpha is a time for acceptable breakage of functions if that breakage leads to better, more efficient functionality, not for bulletproofing a library upgrade before it commits. Thank you for setting my mind right.
Comment #116
neclimdul+1, would be good if we could commit to 1.4 and start fixing bugs against it.
Comment #117
sunIt would probably be a good idea to commit this patch on a Thursday or Friday, so we have the usual good crowd of people + time on the subsequent weekend to quickly fix any problems caused by this upgrade. With Overlay/Toolbar/whatnot entirely relying on JS, this can render your site pretty unusable.
Comment #118
cosmicdreams CreditAttribution: cosmicdreams commentedAnd wow, 1.4 looks to be a pretty important improvement:
http://jquery14.com/day-01/jquery-14
http://jquery14.com/day-12/jquery-141-released
http://blog.jquery.com/2010/02/19/jquery-142-released/
About a 3x speed improvement over jQuery 1.3.2? That's shocking given how the 1.3x series was a such a huge performance win over 1.2. If visitors to this issue are interested, checkout the specific performance improvements in the links above.
Comment #119
webchickCan I get some assurances that, if I commit this, people will hammer the hell out of the inevitable issues over the next couple of weeks to get them all banged out by the 21st, when we roll alpha3/beta1?
I agree this patch is important, but not if it causes critical regressions in functionality and makes alpha3/beta1 worse off than alpha2, front-end wise. Or are these concerns unnecessary (it's hard to follow what issues have been identified and fixed already)?
Comment #120
casey CreditAttribution: casey commentedUnnecessary? Yes! Just commit this one. Waiting will just delay fixing any other js issues.
Comment #121
cosmicdreams CreditAttribution: cosmicdreams commentedIn reference jQuery issues with overlay, I do intend to hunt down and help test whatever remaining issues are there.
After reading the release notes for the 1.4.x series I'm convinced that applying this patch will be a net benefit since much of 1.4 address specific issues I've found in the queue.
.data() *api change*
.html() - Faster now
json.Parse() *new*
.detach() *new *
Comment #122
webchickOk, thanks, cosmicdreams. And thanks too for the wonderful thoroughness in your testing. Hugely appreciated.
Unfortunately, this no longer applies. Can someone give a quick re-roll?
Comment #123
cosmicdreams CreditAttribution: cosmicdreams commented#95: 653580.patch queued for re-testing.
Comment #124
aspilicious CreditAttribution: aspilicious commentedCurrent code in overlay-parent.js
patch code
Do we have to use $.isObject(self.$iframeBody) or self.$iframeBody
Comment #125
casey CreditAttribution: casey commentedreroll
Comment #126
aspilicious CreditAttribution: aspilicious commentedUntill bot says no
Comment #127
cosmicdreams CreditAttribution: cosmicdreams commentedHere is my attempt to reroll. Looks like the only rejection I had was related to how the overlay re-renders when the height of the overlay changes. That issue seems to have been fixed elsewhere (and in a differrent manner than how this patch would have changed it.)
Comment #128
cosmicdreams CreditAttribution: cosmicdreams commentedSorry, casey, didn't see your previous post. Given that your patch and mine have different file sizes we should probably use yours.
Comment #129
aspilicious CreditAttribution: aspilicious commentedcosmicdreams, patch #125 is better.
EDIT:
If there is a difference, you better can post the difference if you're not 100% sure.
Cause now you made a patch with a missing part, it took you some effort to make it.
This advice will make your life easier :)
Comment #130
cosmicdreams CreditAttribution: cosmicdreams commentedLooks like I changed the status, changing back
@casey: Ah I see, you retained the spirit of how #95 would have changed the overlay-parent.js
Comment #131
effulgentsia CreditAttribution: effulgentsia commentedIf #125 is what's desired, it needs to be re-uploaded before status can be RTBC.
Comment #132
webchickHm?
Testbot tests all patches regardless of what order they're uploaded..?
Comment #133
effulgentsia CreditAttribution: effulgentsia commentedSorry, webchick. My mistake. I thought you needed the community accepted patch to be the last one in an issue.
Comment #134
webchickOh! Normally, yes, that's a very nice thing to do. But I'm following this one closely, so I'm good. ;)
Comment #135
webchickOk, #125 came back green. Committed to HEAD.
Let the follow-ups begin. :P
Comment #136
q0rban CreditAttribution: q0rban commentedGreen means go.. :D
Comment #137
webchickcross-post. ;)
Comment #138
q0rban CreditAttribution: q0rban commentedwhoops, cross-post.
Yay(query)!
Comment #139
effulgentsia CreditAttribution: effulgentsia commentedSWEET! Thanks so much for everyone's great work on this.
Comment #140
cosmicdreams CreditAttribution: cosmicdreams commentedAt least for me, there are a few obvious breakages that can be found right away. I'll create an issue to that can serve as a meta issue for post-patch fixes.
Comment #141
casey CreditAttribution: casey commented@cosmicdreams: issue is caused by patch that accidently is commited by webchick : #676008: Overlay's Loading 'spinner' graphic often not visible because it is displayed outside the viewport
Comment #142
cosmicdreams CreditAttribution: cosmicdreams commentedAh thanks, thought I had missed something.
Comment #143
cosmicdreams CreditAttribution: cosmicdreams commentedlooks like I'm only finding a few issues post-patch. The main issue I listed above is no longer relevant. It seems that between the time I wrote that and now that issue has been fixed by other patches.
So that the conversation we've generated here can flow into these other issues I'll list the post-patch problems I've found:
(Note it is very likely that some or all of this issues existed before the jQuery 1.4 patch)
#737614: Enabling Overlay leads to a double toolbar
#737632: tabledrag: menu children take top of left region or not at all in IE
#737600: Use of getBoxObjectFor() is deprecated. Try to use element.getBoundingClientRect() if possible. - minor
#737596: tabledrag.js: $(".indentation", testCell).get(1) is undefined
Comment #144
aspilicious CreditAttribution: aspilicious commented2 are duplicate, one is fixed I guess and the other isn't an issue in my opnion as we aren't using the deprecated function.
Comment #145
rfayThe filter UI is broken (I believe) by this: #739142: Filter UI completely broken by Jquery 1.4 commit.
Comment #147
Eli. CreditAttribution: Eli. commentedThis is quite annoying.
Is there any guide to show you the steps needed to take to upgrade to v. 1.4.2 (or greater)?
The patches available here do not describe on what they rely, and they sure as hell not meant for "stock" drupal, as the jquery version in the patches seems to be 1.3.2 and the stock version is 1.2.6, someone needs to tell us how to continue to actually use jquery 1.4.2 (or greater).
It's not just some "minor" fixes in the 1.4 version, but some very important ones, I'll just mention live events as one.
Think kind of issue should have been a major issue for a minor version update. and you guys shouldn't jump on me and say "well, write your own patch!", this kind of thing is messed deep within the drupal logic and innards, and although I'm working with drupal for a couple of years now, I still am not that capable to update it by myself...
--- Edit ---
As I see it, the main problem is with the JSON, which is not actually a valid JSON.
I have no idea why or who decided to create custom function to encode JSON, or why changing < to \x3c is a good idea,
but that's *not* valid JSON.
For those who look for a simple solution, for now I found that if you replace the "drupal_to_js" function (file includes/common.inc) to simple do "json_encode", this will fix most of the problems, and will let you work on jquery 1.4.2 straight from stock drupal installation (just replace the jquery.js in /misc/ directory).
Comment #148
kkaefer CreditAttribution: kkaefer commentedPlease do not hijack threads that are for another Drupal version. This thread *exclusively* refers to Drupal 7 and has nothing whatsoever to do with Drupal 6. For upgrading jQuery for Drupal 6, you can use the jquery_update.module: http://drupal.org/project/jquery_update
Comment #149
q0rban CreditAttribution: q0rban commentedComment #150
rwt CreditAttribution: rwt commented-- comment removed --
Comment #151
babbage CreditAttribution: babbage commentedComment #152
mikl CreditAttribution: mikl commentedjQuery 1.4.3 has been released. This release carries some very impressive performance improvements and maintains backwards compatibility.
Given Drupal 7’s heavy dependence on jQuery for UI effects, I’d consider this upgrade rather important to get in before Drupal 7 is released.
Comment #153
sunI agree that updating to 1.4.3 would be a good idea, but please open a separate issue.
Comment #154
joshuajabbour CreditAttribution: joshuajabbour commentedissue opened for 1.4.3: #944308: Update to jQuery 1.4.4