jQuery 发布了 1.7.2 的首个 RC 版本,下载地址:http://code.jquery.com/jquery-1.7.2rc1.js
目前 jQuery 内部测试发现该版本跟当前 jQuery UI 以及 jQuery Mobile 1.1 RC1 有一个兼容性问题,这个问题将在下个版本中解决。
另外 jQuery 团队目前在 IE6 的支持方面碰到了一些麻烦,他们在 IE6 做单元测试的时候碰到各种零星的小问题,目前还无法确定这些问题的原因,最令人恼火的是这些问题并不总是出现,所以如果大家在使用过程中有发现相关跟 IE6 的问题并能找到原因请与 jQuery 开发团队联系。
好了,言归正传,jQuery 1.7.2 RC1 版本的改进记录如下:
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
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
#11370: $(‘<div>’).siblings() throws exception |
|