#17311 closed enhancement (fixed)
Update to jQuery 1.6.1
Reported by: | scribu | Owned by: | azaozz |
---|---|---|---|
Milestone: | 3.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | External Libraries | Keywords: | |
Focuses: | Cc: |
Description
jQuery 1.6 was released today.
This update will require more testing than usual, since some breaking changes were made to the commonly used .attr() function.
Attachments (2)
Change History (30)
#3
@
14 years ago
It looks like there are several places that we should be using .prop()
instead of .attr()
. I'm a little unclear so someone should verify, but it seems that most places where we are setting an attribute we should actually be setting the property. Additionally several places where we check an attribute (especially "checked" and "disabled") we should be actually be checking the property. However, I think everywhere we're checking id, name, etc we should continue using attr().
#7
follow-up:
↓ 8
@
14 years ago
- Milestone changed from Future Release to 3.2
Suggesting as a candidate for 3.2. Note it also fixes #16643.
#9
@
14 years ago
Suggesting as a candidate for 3.2.
We've already got breakage for back-compat with 1.5.2 (" in selectors), Leaving this out of 3.2 will mean when 3.3 is released, some authors will have to update their JavaScript yet again to support the 1.6 changes. We still have a fair amount of time left for bugfixing, so it's not out of the question to include 1.6..
#10
@
14 years ago
I would suggest waiting at least for 1.6.1 (which should be released this week), since it will likely contain a fix for the .attr('checked')
and .attr('selected')
debacle.
Can't find where I read John Resig mentioning that.
#13
@
14 years ago
When updating from 1.5.2 to 1.6.1, you should not have to change any code.
http://blog.jquery.com/2011/05/10/jquery-1-6-1-rc-1-released/
#14
@
14 years ago
Agree that the sensible thing would be to add 1.6.1 to 3.2, hopefully it will be released on time. We will have to update jQuery UI after that too.
#15
@
14 years ago
I was in the jquery-dev channel this morning and their plan was to release 1.6.1 tomorrow. I'm not sure that's still on track because they found a regression that affects Drupal. I looked through and it doesn't look like it would affect us, but just in case here it is:
I happens most often when using ajax to update parts of the document, but the root cause is really when injecting a script snippet into the page. It only happens if there is a CDATA section that is commented like this:
<!--//--><![CDATA[//><!-- ... //--><!]]>
The issue is the html comment around a js comment immediately before the CDATA.
John Resig said that doing it the proper way still works. This was what he said was 'proper':
// <![CDATA[ ... // ]]>
I asked specifically about using block comments (which we do in several places) and they said that would still work as well:
/* <![CDATA[ */ ... /* ]]> */
Most of their comments aren't on the ticket yet, but here it is: http://bugs.jquery.com/ticket/9221
#16
@
14 years ago
- Milestone changed from 3.2 to Future Release
Punting for now b/c past feature freeze, may revisit if 1.6.1 comes out soon enough in beta.
#17
@
14 years ago
Just an update: The bug I mentioned above has been fixed (http://bugs.jquery.com/ticket/9221). Hopefully that means 1.6.1 will be here soon.
#21
@
14 years ago
Getting ready to begin testing that patch to ensure things work based on the list found at http://core.trac.wordpress.org/ticket/16426#comment:16 I'll also work at getting a Codex page up that details that list so we can ensure that testing follows a good checklist.
#22
@
14 years ago
Fixed few small bugs that showed with 1.6.1 in core and putting it in. @JDTrower perhaps better to make sure latest UI works well with 1.6.1. Seems we will have that combination in 3.2 if no blockers there.
#23
@
14 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In [17907]:
#24
follow-up:
↓ 25
@
14 years ago
@azaozz, I tested both jQuery 1.6.1 and jQuery UI 1.8.12 with the latest Trunk using my test install in IE 8, IE 9, FF 3.6, FF 4.0, Safari 5, Chrome 10, Opera 10, and Opera 11 on Windows Vista and Windows 7 computers and I didn't notice any bugs. Everything worked as expected. This was done on a test install with 311 posts, 387 pages, 216 categories, 408 tags, and 401 comments. Everything dragged and dropped like it should, and there were no flickering bugs.
#25
in reply to:
↑ 24
;
follow-up:
↓ 26
@
14 years ago
Replying to JDTrower:
Thanks a lot for checking them and confirming all works as expected. Very much appreciate it.
Re testing: http://core.trac.wordpress.org/ticket/16426#comment:16