We are currently upgrading jQuery in our application from jQuery 1.6.4 to 1.9.0.
I believe I have gotten the majority of the changes fixed in our application, however, I would like to be able to go from a semi-solid list of functional jQuery changes to be sure.
As of right now, the only two major changes I see are the removal of the .live and the $.browser features.
There were also some issues that resulted in us upgrading jquery UI to the latest as well.
We have a large application that we finally got the approval to drop support for IE 6 and therefore are trying to bring it closer to the modern age.
I’m not looking for a complete change log for each version, as the change logs include a lot of stuff I don’t really care about. Hopefully this will help others in their upgrade process as well.
What I am looking for: Deprecated functions, Removed functions, Important functional changes such as the old attr and prop
What are the deprecated, removed functions, and important functional changes since jQuery 1.6.4 to 1.9.2…
Since this question may be closed, it makes sense as nhahtdh suggested to submit an answer to be able to edit and add information later. Feel free to make changes to add additional change notes and even increase this to the latest versions of jQuery (1.10)
>= jQuery 1.6.4
No significant changes noted
>= jQuery 1.7.1
No significant changes noted
>= jQuery 1.7.2
From Docs:
If you’re using jQuery Mobile, please use jQuery 1.7.2 only with jQuery Mobile 1.1. For previous versions of jQuery Mobile, stay with jQuery core 1.7.1 or earlier.>= jQuery 1.8.0
Core changes to watch:
animations– core changesCSS Prefixingdata:.curCSS: This one is an important one for me. Upgrading the the new jQuery UI fixed this issue, but it is important to note, that without upgrading, this will break various things.>= jQuery 1.8.1
jQuery notes:
Use jQuery UI 1.8.23 and jQuery Mobile 1.1.1 or later for best compatibility with jQuery core 1.8.1.Don’t use Quirks mode! http://blog.jquery.com/2012/08/30/jquery-1-8-1-released/>= jQuery 1.8.2
>= jQuery 1.8.3
No significant changes noted
>= jQuery 1.9.0 from http://jquery.com/upgrade-guide/1.9/
.toggle(function, function, ... ) removedjQuery.browser() removed.live() removed.die() removedjQuery.sub() removed.add()changes http://jquery.com/upgrade-guide/1.9/#add-.addBack( selector ) replaces .andSelf()http://jquery.com/upgrade-guide/1.9/#addback-selector-replaces-andself-.after(), .before(), and .replaceWith() with disconnected nodes.appendTo, .insertBefore, .insertAfter, and .replaceAllAJAX events should be attached to documentCheckbox/radio state in a .trigger()ed "click" eventOrder of triggered "focus" eventsjQuery(htmlString) versus jQuery(selectorString)Events not fired by the .data() method; names with periodsOrdering of disconnected nodes within a jQuery setLoading and running scripts inside HTML content.attr() versus .prop()$("input").attr("type", newValue) in oldIE"hover" pseudo-event.selector property on jQuery objectsjQuery.attr()jQuery.ajax returning a JSON result of an empty stringjQuery.proxy() context.data("events")Removed properties of the Event objectUndocumented arguments of API methodsI will review and add to this later as I find more issues.