jQuery 1.8 Beta 2 发布
jopen 12年前
<p>It’s been a crazy few weeks around jQuery Central, what with the release of Beta 1 and the jQuery Conference in San Francisco following that. Fear not! Between all the travel, conferences, meetings, and blog posts about the future of jQuery, we’ve actually managed to write some more code. As proof, here is jQuery 1.8 Beta 2:</p> <p><a href="/misc/goto?guid=4958347924926207903">http://code.jquery.com/jquery-1.8b2.js</a></p> <p>This is the critical section in the program where we call on you, the jQuery community, to help us bring this one home. Use Beta 2 with old browsers, new browsers, red browsers and blue browsers. (That’s IE6, Chrome Canary, Opera, and Internet Explorer, respectively.) Test this file with all your code, please test it well in every mode. Did something break in Beta 2? Please tell us now before we’re through!</p> <p>With assistance from those of you who tested Beta 1, we found a few bugs and squashed them. We can’t emphasize enough how important it is for us to get feedback from <em>you</em> as you test with these beta versions. We don’t like releasing final versions that cause problems when you drop them into your web pages, and the way to prevent that is to test with the beta and let us know about problems in advance.</p> <p><strong><em>NOTE:</em> This release required coordination with jQuery UI to fix a few problems. For that reason, pages using jQuery UI will need to include the latest UI master version to test against jQuery 1.8b2. You can get it here: <a href="/misc/goto?guid=4958347925736047783">http://code.jquery.com/ui/jquery-ui-git.js</a>. There will be a maintenance release of jQuery UI 1.8 that includes jQuery core 1.8 support, but users are encouraged to update to jQuery UI 1.9 when it is released.</strong></p> <p>If you find a problem, please try to reduce it to a simple test case. <a href="/misc/goto?guid=4958347926537974431">jsFiddle</a> is our preferred way to get test cases, since it allows us to tweak the test case, diagnose the problem, and explore solutions. (Select <code>jQuery (edge)</code> for the framework, which is the latest code.) With test case in hand, head over to the <a href="/misc/goto?guid=4958347927349959879">bug tracker</a> and let us know what happened. Thanks!</p> <p>In addition to bug fixes reported in Beta 1, this new beta also has a <a href="/misc/goto?guid=4958347928140227121">significant rewrite</a> of the Sizzle engine for even better performance. It fixes a big pile of bugs related to IE 6, 7, and 8 and makes those browsers more consistent to use. Perfection with oldIE will always be an elusive thing, but we’re still trying to make your development life as easy as possible no matter the browser.</p> <p>If you build your own custom versions as described in the <a href="/misc/goto?guid=4958347928944864116">README file</a> on Github, you now have the option of leaving out some of the deprecated functionality that will be removed in future versions. We’ll be adding to this file as we isolate additional deprecated functionality.</p> <p>Below is a complete list of the changes since jQuery 1.7.2. </p> <h2>jQuery 1.8b2 Change Log</h2> <p>The current change log of the 1.8b2 release.</p> <h3>Ajax</h3> <ul> <li><a href="/misc/goto?guid=4958332324620344501">#4624</a>: Charset in default ajaxSettings.contentType</li> <li><a href="/misc/goto?guid=4958327365461295036">#10978</a>: jQuery.param() should allow non-native constructed objects as property values</li> <li><a href="/misc/goto?guid=4958332326153553003">#11264</a>: evalScript() uses defaults set by ajaxSetup()</li> <li><a href="/misc/goto?guid=4958332326948193090">#11426</a>: jQuery.ajax() always fails when requesting JPG images in IE</li> </ul> <h3>Attributes</h3> <ul> <li><a href="/misc/goto?guid=4958327366260344758">#5571</a>: Allow chaining when passing undefined to any setter in jQuery</li> <li><a href="/misc/goto?guid=4958332328466689782">#10828</a>: attr("coords") returns undefined in IE7</li> <li><a href="/misc/goto?guid=4958332329266499207">#10870</a>: Incorrect behaviour of $.removeAttr("selected")</li> <li><a href="/misc/goto?guid=4958332330055174930">#11316</a>: Consider looking through valHooks by element type first, then by nodeName instead of the other way around</li> </ul> <h3>Build</h3> <ul> <li><a href="/misc/goto?guid=4958327367057899079">#10692</a>: Configure the jshint options to more accurately match the style guide</li> <li><a href="/misc/goto?guid=4958332331578580031">#10693</a>: generalize the "test something in an iframe" code in unit tests</li> <li><a href="/misc/goto?guid=4958332332374373778">#10901</a>: have unit tests fail if the tester is running from file:// or doesn't have PHP</li> <li><a href="/misc/goto?guid=4958327367873659582">#10902</a>: ability to test a built version of jQuery in unit tests</li> <li><a href="/misc/goto?guid=4958327368678601471">#10931</a>: Unit tests shouldn't require internet access</li> </ul> <h3>Core</h3> <ul> <li><a href="/misc/goto?guid=4958327369473671814">#10466</a>: jQuery.param() mistakes wrapped primitives for deep objects</li> </ul> <h3>Css</h3> <ul> <li><a href="/misc/goto?guid=4958327370269451836">#10639</a>: outerWidth(true) and css('margin') returning % instead of px in Webkit</li> <li><a href="/misc/goto?guid=4958327371071398821">#10754</a>: have jQuery.swap return the return of the callback instead of just executing it</li> <li><a href="/misc/goto?guid=4958327371869352689">#10782</a>: Incorrect calculating width</li> <li><a href="/misc/goto?guid=4958327372676603122">#10796</a>: Bug in IE7 with $('#el').css.('background-position')</li> <li><a href="/misc/goto?guid=4958327373468962772">#10858</a>: css.js regular expressions are incomplete</li> <li><a href="/misc/goto?guid=4958327374276078702">#11119</a>: The curCSS function only need 2 arguments</li> </ul> <h3>Data</h3> <ul> <li><a href="/misc/goto?guid=4958332339777859867">#11309</a>: hexadecimal-formatted data-* attributes parsed incorrectly</li> </ul> <h3>Deferred</h3> <ul> <li><a href="/misc/goto?guid=4958332340582520991">#11306</a>: calling .disable() or .lock() on a $.Callbacks object breaks its fired() status</li> </ul> <h3>Effects</h3> <ul> <li><a href="/misc/goto?guid=4958327375068589360">#8498</a>: Animate Hooks</li> <li><a href="/misc/goto?guid=4958327375880404003">#10006</a>: method show is not working as expected in all browsers when called for document fragment</li> <li><a href="/misc/goto?guid=4958327376681528806">#10848</a>: Animation toggling loses state tracking in certain atomic edge cases</li> <li><a href="/misc/goto?guid=4958332344371952822">#11415</a>: Silently ignore negative CSS values where they are illegal</li> <li><a href="/misc/goto?guid=4958347948931124700">#11469</a>: Negative margin in animations (.animate)</li> </ul> <h3>Event</h3> <ul> <li><a href="/misc/goto?guid=4958327377499938971">#8165</a>: .live('click', handler) fires on disabled buttons with child elements in Chrome</li> <li><a href="/misc/goto?guid=4958327378300029680">#10819</a>: Eliminate "this.on.call(this, "</li> <li><a href="/misc/goto?guid=4958327379097489413">#10878</a>: $("select").live("change", function(){ …broken in IE8 in jQuery 1.7</li> <li><a href="/misc/goto?guid=4958327379894650727">#10961</a>: Error in XRegExp using jQuery 1.7.1 in IE6-9</li> <li><a href="/misc/goto?guid=4958327380702023082">#10970</a>: The .on() selector parameter doesn't work with :not(:first) selector</li> <li><a href="/misc/goto?guid=4958327381496863335">#10984</a>: Cannot off() custom events ($.event.special)</li> <li><a href="/misc/goto?guid=4958327382304893266">#11021</a>: Hover hack mangles a namespace named "hover"</li> <li><a href="/misc/goto?guid=4958327383096491023">#11076</a>: .clone(true) loses delegation filters</li> <li><a href="/misc/goto?guid=4958327383897156620">#11130</a>: jQuery.fn.on: binding map with null selector ignores data</li> <li><a href="/misc/goto?guid=4958327384698787617">#11145</a>: $(document).on() not working with name="disabled"</li> </ul> <h3>Manipulation</h3> <ul> <li><a href="/misc/goto?guid=4958327385510779315">#9427</a>: Passing undefined to .text() does not trigger setter</li> <li><a href="/misc/goto?guid=4958327386303786298">#10753</a>: inline the evalScript function in manipulation.js as it's only used once</li> <li><a href="/misc/goto?guid=4958327387105014411">#10864</a>: text() method on a document fragment always returns the empty string</li> <li><a href="/misc/goto?guid=4958327387895568553">#11055</a>: Update HTML5 Shim elements list to support latest html5shiv</li> <li><a href="/misc/goto?guid=4958332355463155993">#11217</a>: Append problem with webkit</li> <li><a href="/misc/goto?guid=4958332356269948844">#11291</a>: Cloning XMLDoc's with HTML5 nodeName's breaks on IE</li> <li><a href="/misc/goto?guid=4958332357063186323">#11323</a>: script tags with type="text/ecmascript" leak into the DOM</li> <li><a href="/misc/goto?guid=4958332357864204147">#11356</a>: safeFragment memory leak</li> </ul> <h3>Misc</h3> <ul> <li><a href="/misc/goto?guid=4958327388684816653">#10952</a>: .fired() doesn't work on Callbacks object when it is flagged with "once"</li> <li><a href="/misc/goto?guid=4958327389486347034">#11257</a>: Wrong path to source files in test suite if PHP missing</li> </ul> <h3>Queue</h3> <ul> <li><a href="/misc/goto?guid=4958332360128798313">#10967</a>: .promise() does not attach methods onto target</li> </ul> <h3>Support</h3> <ul> <li><a href="/misc/goto?guid=4958332360924201692">#7986</a>: Bug in $.support.boxModel if page has DIV-element CSS</li> <li><a href="/misc/goto?guid=4958327390276266449">#11048</a>: Support Tests affect layout for positioned elements in IE6-9</li> <li><a href="/misc/goto?guid=4958332362446966879">#11337</a>: Bug in $.support.reliableMarginRight</li> </ul> <h3>Traversing</h3> <ul> <li><a href="/misc/goto?guid=4958332363254517304">#11370</a>: $('<div>').siblings() throws exception</li> </ul>