jQuery 1.7.2 Released

Posted on by

jQuery 1.7.2 is looking good! The release candidate went smoothly so we’ve made only one small change and are releasing it to your eager hands today. You can get the oven-fresh code from the jQuery CDN now, with Google and Microsoft CDNs soon to follow:

Note: 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.

You can use the bug tracker to report bugs; be sure to create a test case on jsFiddle so we can figure it out easily. If you’re not sure it’s a bug, ask on our forum or on StackOverflow. Please don’t use the blog comments below to report bugs.

As always, this release wouldn’t have been possible without the hard work of many people. First, the jQuery Core Team: gnarf, jaubourg, mikesherov, rwldrn, and timmywil. The support of the jQuery UI, Mobile, and Infrastructure teams was greatly appreciated as well, especially danheberden’s valiant struggle against Trac.

Community members like adebree, caii, cmc3cn, KYSergey, mathiasbynens, miskith, MrMamen, Orkel, pasky, SineSwiper, tavelli, and vlazar pitched in by reporting, verifying, and fixing bugs. Special jQuery Gold Leaf Cluster thanks to gibson042 and sindresorhus for their work in making 1.7.2 a great release. Don’t let these people have all the fun! If you’d like to contribute to the web’s most popular Javascript library, hop onto #jquery-dev on IRC or the Developing jQuery Core section on our forum and say hello!

Many thanks to Louis-Rémi Babé, who submitted a patch to fix a regression with negative margin animations a mere 30 minutes before the release!

jQuery 1.7.2 Change Log

Here’s the change log of the 1.7.2 release.

Ajax

#4624: Charset in default ajaxSettings.contentType

#10978: jQuery.param() should allow non-native constructed objects as property values

#11264: evalScript() uses defaults set by ajaxSetup()

#11426: jQuery.ajax() always fails when requesting JPG images in IE

Attributes

#5571: Allow chaining when passing undefined to any setter in jQuery

#10828: attr(“coords”) returns undefined in IE7

#10870: Incorrect behaviour of $.removeAttr(“selected”)

#11316: Consider looking through valHooks by element type first, then by nodeName instead of the other way around

Build

#10692: Configure the jshint options to more accurately match the style guide

#10693: generalize the “test something in an iframe” code in unit tests

#10901: have unit tests fail if the tester is running from file:// or doesn’t have PHP

#10902: ability to test a built version of jQuery in unit tests

#10931: Unit tests shouldn’t require internet access

Core

#10466: jQuery.param() mistakes wrapped primitives for deep objects

Css

#10639: outerWidth(true) and css(‘margin’) returning % instead of px in Webkit

#10754: have jQuery.swap return the return of the callback instead of just executing it

#10782: Incorrect calculating width

#10796: Bug in IE7 with $(‘#el’).css.(‘background-position’)

#10858: css.js regular expressions are incomplete

#11119: The curCSS function only need 2 arguments

Data

#11309: hexadecimal-formatted data-* attributes parsed incorrectly

Deferred

#11306: calling .disable() or .lock() on a $.Callbacks object breaks its fired() status

Dimensions

#3838: $(document).height() incorrect in IE6

Effects

#8498: Animate Hooks

#10006: method show is not working as expected in all browsers when called for document fragment

#10848: Animation toggling loses state tracking in certain atomic edge cases

#11415: Silently ignore negative CSS values where they are illegal

#11469: Negative margin in animations (.animate)

Event

#8165: .live(‘click’, handler) fires on disabled buttons with child elements in Chrome

#10819: Eliminate “this.on.call(this, “

#10878: $(“select”).live(“change”, function(){ …broken in IE8 in jQuery 1.7

#10961: Error in XRegExp using jQuery 1.7.1 in IE6-9

#10970: The .on() selector parameter doesn’t work with :not(:first) selector

#10984: Cannot off() custom events ($.event.special)

#11021: Hover hack mangles a namespace named “hover”

#11076: .clone(true) loses delegation filters

#11130: jQuery.fn.on: binding map with null selector ignores data

#11145: $(document).on() not working with name=”disabled”

Manipulation

#9427: Passing undefined to .text() does not trigger setter

#10753: inline the evalScript function in manipulation.js as it’s only used once

#10864: text() method on a document fragment always returns the empty string

#11055: Update HTML5 Shim elements list to support latest html5shiv

#11217: Append problem with webkit

#11291: Cloning XMLDoc’s with HTML5 nodeName’s breaks on IE

#11323: script tags with type=”text/ecmascript” leak into the DOM

#11356: safeFragment memory leak

Misc

#10952: .fired() doesn’t work on Callbacks object when it is flagged with “once”

#11257: Wrong path to source files in test suite if PHP missing

Queue

#10967: .promise() does not attach methods onto target

Support

#7986: Bug in $.support.boxModel if page has DIV-element CSS

#11048: Support Tests affect layout for positioned elements in IE6-9

#11337: Bug in $.support.reliableMarginRight

Traversing