Commit Graph

4238 Commits

Author SHA1 Message Date
Jason Bedard
e53a919090 Avoid jQuery(this) and a closure for .toggle(Boolean), close gh-1271. 2013-06-02 22:27:40 -04:00
Richard Gibson
0b7c44a1da Fix #13974: XML .attr("type")
(cherry picked from commit adf3090318)
2013-06-02 01:37:33 -04:00
Oleg
d0ca609600 Sizzle Update: fix #13936 - iframe reload should not affect Sizzle. 2013-05-29 17:19:57 +04:00
Richard Gibson
6fd5e480c1 Fix #13937: Correctly scope .finish() following multi-element .animate(). Thanks @gnarf37. Close gh-1279.
(cherry picked from commit ae9e05e9f3)
2013-05-28 16:49:48 -04:00
Oleg
68c9d0528c Simplification of jQuery#contents method 2013-05-27 11:21:28 -04:00
Richard Gibson
26980c6ec9 Fix #13939: Same-unit relative animations
(cherry picked from commit 00231d5d94)
2013-05-26 19:53:58 -04:00
Julian Aubourg
a2cd89a795 Handles HEAD requests as if they always were 204. Fixes #13922. 2013-05-23 02:11:37 +02:00
Eddie Monge
eabb56c274 Fix #13789: Don't throw when module === null. Close gh-1269. 2013-05-20 18:57:40 +02:00
Richard Gibson
2f2e045ea6 Fix #13894: CSS identifiers with backslash-escaped whitespace
(cherry picked from commit a75016634d)
2013-05-15 21:25:46 -04:00
Richard Gibson
d8a35011ec Fix #13835: classes separated by form feed 2013-05-13 21:55:00 -04:00
Richard Gibson
d80c6aca18 Ref 3971c2eb: Sync with 1.x-master 2013-05-13 20:37:42 -04:00
Richard Gibson
3971c2ebb2 Fix #13855: line-height animations. Close gh-1265. 2013-05-13 18:17:25 -04:00
Rick Waldron
c1b8edfcc9 Optimize cleanData: allow direct access to data_priv for cleanup 2013-05-13 15:00:57 -04:00
Timmy Willison
1debe49ac7 Update Sizzle: fix sort order test 2013-05-10 15:44:06 -04:00
Timmy Willison
5dda0687f1 Update Sizzle: empty string arguments in pseudos. Fixes #13882. 2013-05-10 12:48:39 -04:00
Dave Methvin
9fdbc8bf33 Fix #13223. Re-allow leading space in HTML. Close gh-1264.
(cherry picked from commit 00eafdf028)
2013-05-09 14:53:15 -04:00
Jason Bedard
c9267ab078 Only call jQuery(this) when needed. Close gh-1260. 2013-05-09 14:26:13 -04:00
Jason Bedard
5e42df0517 Use String.slice instead of String.substring in order to save a three bytes. Close gh-1261. 2013-05-08 19:56:13 +04:00
Timmy Willison
2fc6b658e8 Update Sizzle: minor fixes 2013-05-08 10:54:56 -04:00
Timmy Willison
7725f8e8b1 Update Sizzle: fix failing tests with attributes 2013-05-07 17:38:19 -04:00
Timmy Willison
24f2166400 Update Sizzle: minor selector issues 2013-05-07 15:26:49 -04:00
Timmy Willison
8d3c0506c8 Check nodeType of elements passed to selector-native's find. Fixes #13577. 2013-05-06 15:42:00 -04:00
Timmy Willison
6d04ebfafb No ticket: boolean -> bool in selector-native 2013-05-06 15:41:22 -04:00
Rick Waldron
2406b5e290 Fixes #13850. Better removal of hyphenated data property names.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-05-02 16:35:22 -04:00
Dave Methvin
6b5391508e Fix #13255. Set a default event target for Cordova. 2013-05-02 13:39:13 -04:00
Richard Gibson
9c4a428528 Fix #13846: .prev sort direction 2013-05-01 11:33:06 -04:00
Richard Gibson
18cccd04a6 Fix #13803: domManip remote-script evaluation per 1.9 (AJAX dataType "script") 2013-04-29 13:31:59 -04:00
Corey Frang
55e319aa52 Fixes #13815: Ensure each element has its own private data object - Tests by @rwldrn 2013-04-24 17:09:30 -04:00
Oleg
3a6194076b Fix #13818: Add wrapMap entry for col element 2013-04-24 22:15:41 +04:00
Richard Gibson
78c803f1b5 Fix #13819: .parent sort direction
(cherry picked from commit 6a816ec95f)
2013-04-24 11:40:42 -04:00
Richard Gibson
ad71f47b27 Fix #13809: Avoid collisions with words reserved by any version of ECMA-262 2013-04-24 09:06:11 -04:00
Richard Gibson
d8f7e83712 Fix #13810: .replaceWith(nextSibling) 2013-04-22 21:08:38 -04:00
Richard Gibson
67a080b284 Fix #13807: attribute/Object.prototype name collisions 2013-04-22 09:58:09 -04:00
Richard Gibson
fb1731ab16 Fix #13797: .is with single-node context
(cherry picked from commit 4f786ba4d2)
2013-04-20 11:51:51 -04:00
Richard Gibson
d754b50cb5 No ticket: Reduce .find
(cherry picked from commit 85b3c82445)
2013-04-20 10:06:31 -04:00
Timmy Willison
3ef7a9683b Remove unnecessary usage of getAttributeNode(). Fixes #12072. 2013-04-18 13:51:12 -04:00
ros3cin
5179fa00b8 Refactor code in effects to use data_priv. Re- Close gh-1244. 2013-04-17 12:37:23 -04:00
Richard Gibson
03db1ada2c Fix #12838: hook point for non-jQuery.ajax synchronous script fetch/execute in domManip. Close gh-1051. 2013-04-17 11:27:57 -04:00
Renato Oliveira dos Santos
ea5c22ec12 Fix #13483. Let slideDown() work after stop(). Close gh-1205. 2013-04-16 23:07:39 -04:00
Rick Waldron
2c7b1b8502 Loop cleanup
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-16 22:37:48 -04:00
Rick Waldron
77d7f26452 Fixes #13779. Remove nodes in document order (uses for loop matching empty()). 2013-04-16 22:18:44 -04:00
Richard Gibson
db0326b1fd Fix #13596; #13722: .replaceWith consistency. Close gh-1216. 2013-04-16 17:47:21 -04:00
Timmy Willison
c0088f2d26 Update Sizzle: src attribute in IE7. Fixes #13777. 2013-04-15 10:46:24 -04:00
Michał Gołębiowski
e80117adb4 Fixes #13760. Pass window, not this to the main IIFE. Closes gh-1238 2013-04-10 17:27:31 -04:00
Timmy Willison
ac9cad19fa Add onevar to jshintrc, but remove the option for linting the concatenated file 2013-04-09 12:48:34 -04:00
Timmy Willison
e01a6231c7 Update Sizzle: jshintrc 2013-04-09 12:40:50 -04:00
Timmy Willison
0fa52c11cb Update jshintrc to conform to new style guide. Conform to onevar and unused in tests. Fixes #13755. 2013-04-09 11:59:31 -04:00
Dave Methvin
85fc5878b3 Fix #13393. Avoid IE9 activeElement of death. 2013-04-08 21:35:48 -04:00
Oleg Gaidarenko
f1ba486ee3 Adjust tabIndex propHook for modern browsers and return -1 where appropriate. Close gh-1228. 2013-04-08 21:33:17 -04:00
Rick Waldron
570ec3dec7 Add note about deprecation of _removeData and _data
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-08 15:39:20 -04:00
Rick Waldron
d7d6b7a5c7 Move Data.prototype.accept => Data.accepts
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-08 15:37:16 -04:00
Timmy Willison
5833081356 Update Sizzle: pick IE over Chrome this time. Supplements #13378. 2013-04-08 15:35:40 -04:00
Oleg Gaidarenko
e8731410a4 No ticket. Use data_priv methods instead of jQuery._removeData and jQuery._data; Remove needless, internal second argument of jQuery.cleanData. Closes gh-1234 2013-04-08 15:35:16 -04:00
Oleg Gaidarenko
1a3939659b No ticket. Simplifies data methods and updates comments. Closes gh-1233 2013-04-08 15:31:47 -04:00
Timmy Willison
ff3f83fdf6 Revert Sizzle. Reopens #13378 2013-04-08 15:21:30 -04:00
Oleg Gaidarenko
f61314ff5c Fixes #8335. Do not allow add data to non-elements (2.x). Closes gh-1232 2013-04-08 15:10:39 -04:00
Timmy Willison
aadae5058a Update Sizzle: use documentElement in focus selector. Fixes #13378. 2013-04-08 14:17:01 -04:00
Richard Gibson
a120bbbfae Ref #12652: Allow overriding native .click() suppression
(cherry picked from commit 14b09ef98e)
2013-04-08 13:57:11 -04:00
Michał Gołębiowski
1233fc7788 Ref #13743. Remove support.boxModel, deprecated 1.3. Close gh-1230. 2013-04-08 12:49:19 -04:00
Oleg
eaedf098b3 No ticket: Small simplification of .removeProp. Close gh-1227. 2013-04-07 23:33:04 -04:00
Michał Gołębiowski
18d006762c No ticket: Move jQuery.fn.size to deprecated. Close gh-1229.
(cherry picked from commit e3777b6437)
2013-04-07 23:29:36 -04:00
Michał Gołębiowski
dca7681284 Improve CSS and Support: comments. Close gh-1220.
1) corrected box-sizing rules order - the unprefixed value should always be the last one
2) removed last semi-colons in CSS rules
3) updated support comments

code review changes + more consistent comment spacing
2013-04-06 17:09:52 -04:00
Dave Methvin
1b61026650 Fix #13721. Filter before .remove() loop so positionals work. Close gh-1221. 2013-04-06 16:37:32 -04:00
Dave Methvin
5031c9db4b Fix #13741. Make wrap/unwrap methods optional. Close gh-1222. 2013-04-06 16:00:58 -04:00
Richard Gibson
1114611f77 Ref 4ef51690: Update selector-native for new Sizzle dependencies 2013-04-05 01:04:44 -04:00
Richard Gibson
5d1dfe7474 Fix #13539: Utilize Sizzle hooks. Close gh-1215.
(cherry picked from commit 4ef516903e)
2013-04-05 00:37:36 -04:00
Rick Waldron
6358da8aa3 Fixes #13566. If there is a window object, and it has a document property, it might be the window we want, so define jQuery and $. Thanks to @dcherman for saving us from that embarrassment!
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-04 17:27:15 -04:00
Rick Waldron
37c801eda5 Fixes #13566. If there is a window object, define jQuery and $
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-04 16:55:16 -04:00
Michał Gołębiowski
7049877530 Correct oldIE-related comments, revert some workarounds. Close gh-1207. 2013-04-04 12:55:03 -04:00
Michał Gołębiowski
ba16ba2efc Update grunt-contrib-jshint to 0.3.0, part 2, close gh-1203. 2013-04-04 12:27:21 -04:00
Oleg
6da5eb1033 Follow-up for 22a4e5bd0a, fix .checkOn, add support tests. Cloes gh-1199. 2013-04-03 22:27:16 -04:00
Michał Gołębiowski
5aaa276e9e Remove an unused support check, correct a comment. Close gh-1211. 2013-04-03 21:21:23 -04:00
Michał Gołębiowski
8db7d6f20b Fix #13543. offsetWidth is wrong on non-1 zoom. Close gh-1194. 2013-04-03 21:00:38 -04:00
Michał Gołębiowski
1205103a72 Update grunt-contrib-jshint to 0.3.0, close gh-1204.
(cherry picked from 4adde5d145)

Conflicts:
	src/data.js
	src/effects.js
2013-04-03 20:51:30 -04:00
Rick Waldron
9eb838e418 Removes unnecessary semi-colon concatenation
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-03 13:01:49 -04:00
Rick Waldron
feea9394b7 Fixes #13714. jQuery.globalEval gotcha w/ strings that contain valid, prologue position strict mode pragma
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-03 11:26:07 -04:00
Rick Waldron
73b315538f Better approach the hasData side effects fix. Thanks gibson042
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-01 17:09:37 -04:00
Rick Waldron
332a490573 Avoid side-effects when calling jQuery.hasData
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-01 12:48:30 -04:00
Michał Gołębiowski
100d3c3516 moved bind, unbind, delegate & undelegate to event-alias.js; refs #13554 2013-03-25 22:06:50 -04:00
Steven Benner
237413e75d Changed .jshintrc predef lists to globals objects. 2013-03-25 21:41:34 -04:00
Timmy Willison
f319f42db0 Use semver versions for our in-between versions as well.
http://semver.org
2013-03-23 15:20:46 -04:00
Timmy Willison
6bbbb785db Remove unprefixed matchesSelector. Stick most common first. Update Sizzle 2013-03-23 15:18:16 -04:00
ruado1987
c9ca9bf509 Fix #13514: Set selectedIndex to -1 when non-matching value is set on a select. Close gh-1191.
(cherry picked from commit 48d71d0c3e)
2013-03-22 12:47:01 -04:00
Timmy Willison
8f4572406c Build selector.js from built sizzle. Update Sizzle. 2013-03-19 15:56:20 -04:00
stonelee
92b23673e6 No ticket: Move property descriptor assignment to save a byte. Close gh-1188. 2013-03-14 09:53:19 -04:00
Michał Z. Gołębiowski
79992d7523 Edited comments and minor adjustments. Fixes #13553. Closes gh-1195. 2013-03-12 21:06:25 -04:00
Timmy Willison
ae3524642c Update Sizzle: minor windows 8 issue 2013-03-11 12:55:26 -04:00
Rick Waldron
5c82d36f19 Revert 8d1c42296f 2013-03-06 15:11:20 -05:00
Rick Waldron
8d1c42296f Fixes #13571. jQuery.isPlainObject 1.9.x compatibility
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-06 14:42:24 -05:00
Rick Waldron
692afbcc5f Fixes #13551. Guard against illegal data access by undefined elem-owner
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-03 19:40:33 -05:00
Rick Waldron
91824bd292 Simplify data-* attr lookup with camelKey
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-02 14:09:39 -05:00
Michał Gołębiowski
761b96c301 Fixes #13550. .data should not miss attr() set data-* with hyphenated property names. Closes gh-1189 2013-03-02 13:04:48 -05:00
Rick Waldron
8f7218198d Remove dup camelKey path
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-01 19:33:12 -05:00
Rick Waldron
3212a29369 Fixes #13548. .data should not miss attr() set data-* with hyphenated property names 2013-03-01 19:02:57 -05:00
jrburke
34c4e122a3 Remove the define.amd.jQuery check, ref gh-1150. 2013-02-28 17:21:18 -05:00
Richard Gibson
3f05afbd8d Ref #13353, gh-1183: Capture onlyHandlers in jQuery.Event.isTrigger. 2013-02-28 16:59:12 -05:00
Oleg
22a4e5bd0a Squeeze support module. Close gh-1165. 2013-02-28 16:18:12 -05:00
jaubourg
eebc77849c Fixes #11151, #13388. Minor refactor of response conversion and when/where
responseXXX fields are set on the jqXHR. Close gh-1164.

(Cherry-picked from 69b3d5ce0f)
2013-02-28 15:01:10 -05:00
Dave Methvin
8be9cd1ce7 Add warnings and ignore the built Sizzle file. 2013-02-27 22:45:55 -05:00
Richard Gibson
1083f82d1e Fix #13434: native-API selector module
What's out:
* 6 KB
* attribute not equal selector
* positional selectors (:first; :eq(n); :odd; etc.)
* type selectors (:input; :checkbox; :button; etc.)
* state-based selectors (:animated; :visible; :hidden; etc.)
* :has(selector)
* custom selectors
* leading combinators (e.g., $collection.find("> *"))
* reliable functionality on XML fragments
* requiring all parts of a selector to match elements under context (e.g., $div.find("div > *") now matches children of $div)
* matching against non-elements
* reliable sorting of disconnected nodes
2013-02-27 22:45:55 -05:00
jaubourg
0618710913 Properly resets firingLength when emptying the list. Fixes #13517 2013-02-27 16:15:32 +01:00
Richard Gibson
1b6be73721 No ticket: Squeeze data 2013-02-26 23:41:57 -05:00
Nguyen Phuc Lam
8bc7bdebef Ref #13283, move .andSelf() to deprecated.js. Close gh-1170. 2013-02-26 22:57:12 -05:00
Richard Gibson
85f1985f24 Fix #13494: Fallback defineProperties to jQuery.extend. Close gh-1182.
Android<4 (ancient WebKit) doesn't have full ES5 support.
2013-02-26 22:38:06 -05:00
Scott González
b55bfb140f Whitespace. 2013-02-26 13:06:58 -05:00
Dave Methvin
2bbc3d5860 Fix #13471. $().on(".xyz"...) should avoid later crash.
If the event type is an empty string we end up hanging in .off() which makes for
mighty hard debugging. Instead treat it as a no-op. Docs seem clear this is not
allowed.
2013-02-26 12:19:09 -05:00
Timo Tijhof
31478b9012 Optimisation: Use String instead of window.String. Close gh-1176.
Follows-up 22e28b01e6.
2013-02-26 10:17:54 -05:00
Richard Gibson
6d188186d4 No ticket: move jQuery.expando to core 2013-02-25 15:48:22 -05:00
Richard Gibson
972de58990 No ticket: reduce support.js 2013-02-25 15:33:13 -05:00
Richard Gibson
6256c614fd Fix #13505: Yet another detached add patch 2013-02-24 23:24:28 -05:00
Richard Gibson
2129c233e9 No ticket: Restore support for Android<4.0 2013-02-23 21:16:28 -05:00
Richard Gibson
7d36c0fb6e Fix #13499: selector with leading ID matching only a name
(cherry picked from commit 5c4ab97a64)
2013-02-22 21:30:10 -05:00
Richard Gibson
9338a69e30 No ticket: Reduce size in anticipation of Sizzle-free builds
(cherry picked from commit dbf3056b25)
2013-02-22 16:36:39 -05:00
Pascal Borreli
85ee87b444 Fixes typos in core.js and css.js. Closes gh-1175 2013-02-21 12:00:51 -05:00
Rick Waldron
a464d75005 Adds module to jshintrc 2013-02-21 09:56:20 -05:00
isaacs
a128355b25 Support node-like module loaders. Closes gh-1103 2013-02-20 21:31:06 -05:00
Richard Gibson
0f977e6d03 No ticket: Update Sizzle 2013-02-17 23:12:44 -05:00
Rick Waldron
93043d002a Refactor: Data.prototype.access. Thanks to @RubyLouvre and @gibson042. Closes #1167 2013-02-13 12:14:20 -05:00
Richard Gibson
b734666f4d Fix #13265 #13332: traversing methods with text nodes. Close gh-1145. 2013-02-13 22:03:37 -05:00
Rick Waldron
1d5d959ee0 Optimized Data rewrite 2013-02-11 12:39:44 -05:00
Mark Raddatz
6a0ee2d9ed Fix #13401: replaceWith(""). Close gh-1163. 2013-02-08 09:49:14 -05:00
Richard Gibson
363299ac24 Ref #13316: Sync all documents on full vs. minified source. Close gh-1147. 2013-02-07 15:16:28 -05:00
Oleg
f3db084f7c Fix #13310. Get the right display value for disconnected nodes. Close gh-1156. 2013-02-04 15:22:07 -05:00
Richard Gibson
a5b456edff Ref fd43865c: restore correct logic 2013-02-04 09:35:33 -05:00
Rick Waldron
cf260fe285 Match the codebase standard, .split(" ") => .match( core_rnotwhite ) || []… no matter how awful it is >:|
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-02-03 18:09:49 -05:00
Rick Waldron
f50680898b Standardize on a.indexOf(b) === -1, per @gibson042 review notes
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-02-03 18:04:53 -05:00
Rick Waldron
fd43865c6d Reduce hasData per @gibson042 review notes.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-02-03 17:55:28 -05:00
Rick Waldron
64630eaf85 Reduce Data.prototype.add by using the returned length value of this.owners.push(owner)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-02-03 15:31:23 -05:00
Rick Waldron
7f94a5cc3a 2.0: Rewrite data.js (Incl. event, manipulation, tests) 2013-02-03 15:27:55 -05:00
Timmy Willison
21c7a056e2 Update Sizzle: detached node sorting in Webkit. Fixes #13331. 2013-02-01 18:06:02 -05:00
Dave Methvin
0e2977583c Fix #13335. Remove "use strict". 2013-02-01 17:17:39 -05:00
Andrew Plummer
d654914fd0 event: Stricter type checking in trigger - Fixes #13360 - Closes gh-1153
Squashed commit of the following:

commit 5935a362c7
Author: Andrew Plummer <plummer.andrew@gmail.com>
Date:   Fri Feb 1 02:40:42 2013 +0900

    Using "hasOwnProperty" to check for direct properties "type" and
    "namespace" on events before triggering.
(cherry picked from commit f005af54e4)
2013-01-31 12:04:32 -06:00
Timmy Willison
f3ce0e696d Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406. 2013-01-30 20:37:13 -05:00
Timmy Willison
f5110cdec0 Minor updates. All parameters of an internal function are for internal use only. 2013-01-30 20:36:58 -05:00
Dave Methvin
a5c33fe1f7 Fix #13349. No need to sort simple .find() cases. 2013-01-29 20:48:48 -05:00
Dave Methvin
451d0c37d9 Fix comment about Safari shortfalls. 2013-01-29 16:56:32 -05:00
Dave Methvin
aa3c92979a Revert "Fix #13291, no longer need the functionish-regex guard."
Turns out this is still needed by Safari 5.1, which we're still supporting.

This reverts commit c4b1da4007.
2013-01-29 14:40:30 -05:00
adamcoulombe
54fc5fdfa2 Fix #13150, .has() w/o args checks for any callbacks. Close gh-1111. 2013-01-27 13:35:30 -05:00
Richard Gibson
64b55f0b79 Fix #13315 for IE9: compare typeof xmlNode.method to var instead of literal "undefined" for safer uglification
(cherry picked from commit ec9b38a34f)
2013-01-27 10:04:09 -05:00
Dave Methvin
6f7b6915bf Fix #12656. Make event shorthands excludable. 2013-01-27 09:07:00 -05:00
Dave Methvin
a6c358d046 Fix #12846. Restore overflow when animation is stopped. 2013-01-26 22:02:15 -05:00
Dave Methvin
c4b1da4007 Fix #13291, no longer need the functionish-regex guard. 2013-01-26 20:31:37 -05:00
Richard Gibson
fb0f295292 Fix #13282: QtWebKit (e.g., phantomjs) can only apply Arrays 2013-01-24 23:45:44 -05:00
Richard Gibson
f39ca223e0 Fix #13281: update Sizzle 2013-01-24 23:11:47 -05:00
byroot
bfc61b879e Don't try and convert data for 204 No Content responses. Fixes #13292. Fixes #13261. 2013-01-24 02:34:02 +01:00
Timmy Willison
caac041fcc Ignore file inputs when serializing forms. File input serialization is handled by plugins. Fixes #13306. 2013-01-23 12:23:46 -05:00
Timmy Willison
b326225d90 Fix failing tests, add support for empty spans in Opera. Supplements #13132, #10406. 2013-01-21 18:03:07 -05:00
Timmy Willison
372e04e78e Treat an element as hidden if either offsetWidth or offsetHeight is 0. Fixes #13132, #10406. 2013-01-21 17:12:31 -05:00
jaubourg
1c77259d06 Removes unnecessary call to .off() as noted by @dcherman. 2013-01-21 03:05:03 +01:00
Oleg
cbe0c2ef90 2.0: Reduce offset module. Close gh-1139. 2013-01-20 18:36:43 -05:00
Oleg
19def21df4 Fix #13232, fix jQuery.buildFragment for tables, close gh-1138. 2013-01-20 18:30:56 -05:00
Oleg
dbf4926e31 Consistently clean up after .ready() handler, close gh-1135. 2013-01-20 18:20:53 -05:00
jaubourg
1ad874f344 Further script transport cleanup, close gh-1123. 2013-01-20 18:10:07 -05:00
jaubourg
c373a499d3 Reduced script transport 2013-01-20 18:08:59 -05:00
Timmy Willison
7632711d5c Update Sizzle: fixes native slice usage 2013-01-18 10:48:39 -05:00
Richard Gibson
8871218cdf Fix jQuery #13251: use slice instead of substring
(cherry picked from commit 37eb6125c0)
2013-01-17 17:01:42 -05:00
Richard Gibson
50290b8ffb Ref cc324abf: use acceptData to determine when it is safe to add event handlers 2013-01-16 14:36:24 -05:00
danilsomsikov
cc324abf73 Fix #8335: Avoid memory leak by never setting data on non-element non-document nodes. Close gh-1127. 2013-01-16 14:31:29 -05:00
Richard Gibson
a96aa9e270 Fix #13233: re-allow .replaceWith of text nodes. Close gh-1137.
(cherry picked from commit 6b1b0a26b4)
2013-01-16 13:57:00 -05:00
Richard Gibson
2f0756b534 Fix #13182: update Sizzle 2013-01-16 00:18:04 -05:00
Mike Sherov
10cc33e27b Fix #13183: Wrong animation initial value calc. Ref gh-1136. 2013-01-15 23:34:22 -05:00
Oleg
eff59f97ac Add a comment 2013-01-13 22:05:41 -05:00
Oleg
38ad408f82 Fixes #13200 - innerHTML in buildFragment need end tags 2013-01-13 22:05:37 -05:00
Richard Gibson
31b9579715 Fix #13203: delegated events with selector matching Object.prototype property 2013-01-13 21:40:24 -05:00
Richard Gibson
b75b9ef8d0 Fix #13180: don't delegate into SVG <use>
(cherry picked from commits 36457cb6afc12d4a755cf93442a502783a669517..f860e0bd2f7dd228a14704d78ed5208cbe870d01)
2013-01-13 20:00:03 -05:00
Richard Gibson
7767234364 No ticket: compress event.js
(cherry picked from commit 9cf812d7a2)
2013-01-13 19:41:31 -05:00
Dave Methvin
c0c1bdde60 Update copyrights used in file headers. 2013-01-11 16:08:09 -05:00
Richard Gibson
bad229c53e Update Sizzle 2013-01-11 13:01:56 -05:00
Richard Gibson
c1a59f78c2 Update Sizzle 2013-01-10 15:54:32 -05:00
Richard Gibson
ca49ef98d5 Ref gh-1117: Use native push for size and performance 2013-01-09 10:11:33 -05:00
Oleg
8e6c1ba92f Ref gh-1117: Don't stop on a falsy value in buildFragment. Close gh-1124. 2013-01-09 09:52:01 -05:00
nanto
2f6b3f818f Propagate context of returned deferred object in Deferred.then(). Fixes #13160. 2013-01-08 16:37:50 +01:00
jaubourg
7cc629d097 Opera 12.0 still implements an older version of the DOM so cloneNode cannot be called without an argument 2013-01-08 11:15:36 +01:00
Oleg
57d9dcd4a0 Use while loop instead of for 2013-01-08 02:41:25 +00:00
Oleg
58b4994f56 Always use core_push in jQuery.buildFragment 2013-01-08 02:41:21 +00:00
Oleg
c9bf5c5e90 Bring back jQuery.buildFragment and remove jQuery.clean 2013-01-08 02:41:15 +00:00
Oleg
054daa20af Ref #8908. Update IE9 css clone fix. Close gh-1119. 2013-01-08 02:08:47 +00:00
Oleg
9434060722 Simplify .wrapAll() and fix style. Close gh-1116. 2013-01-08 01:35:55 +00:00
Corey Frang
b6abb31df4 Fix #13103. Add .finish() method. Close gh-1118. 2013-01-08 01:19:25 +00:00
nanto_vi
412d910697 Eliminate redundancy of Deferred.then(). 2013-01-08 01:03:38 +09:00
jaubourg
62acda819f Adds the abort on unload trick back in since IE9 still exhibits the bug 2013-01-07 10:34:14 -05:00
jaubourg
f6df0301c8 Fixes comments per @rwldrn. Makes sure failing requests from local protocol yields status 404, not 0. 2013-01-07 10:34:11 -05:00
jaubourg
17049c73bc 2.0: reduced xhr transport 2013-01-07 10:34:07 -05:00
nanto_vi
e7fdda9819 Propagete context of returned deferred object in Deferred.then(). Fixes #13160 2013-01-07 02:49:15 +09:00
Dave Methvin
c61150427f Fix #13143. Event target cannot be a text node.
Check removed in the initial 2.0 refactor but Chrome still needs it. No effective way to unit test; see the test case in #13143.
2013-01-06 10:25:02 -05:00
Dave Methvin
c0241a47e2 Ref #12945, IE9/10 still needs safe .getAttribute check. 2013-01-04 22:29:27 -05:00
Dave Methvin
e9ab6a74d4 Fix #12945. Check for .getAttribute so IE9 is happy. 2013-01-04 17:35:01 -05:00
Dave Methvin
1e5b14a131 Remove appendChecked detect and stranded markup. 2013-01-03 20:57:00 -05:00
Dave Methvin
9a32f12bdf Remove oldIE styleFloat detect. 2013-01-03 20:56:02 -05:00
Dave Methvin
cef3450228 Remove noCloneEvent detects and white-box unit test. 2013-01-03 20:55:59 -05:00
Dave Methvin
4ee1b03c54 Remove oldIE submit/change bubble detects. 2013-01-03 20:55:56 -05:00
Dave Methvin
11e6a66002 Remove deleteExpando detect. 2013-01-03 20:55:52 -05:00
Dave Methvin
aa529696fb Remove inlineBlockNeedsLayout and shrinkWrapBlocks. 2013-01-03 20:52:38 -05:00
Dave Methvin
02d7f9aee3 Remove support.reliableHiddenOffsets detect. 2013-01-03 20:52:35 -05:00
Dave Methvin
3d9edb32bc Remove stranded support.js checks for oldIE. 2013-01-03 20:52:31 -05:00
Dave Methvin
445dbd9d95 Revert data.js rewrite.
Reverts the following commits:

commit f717226b3a
Author: Rick Waldron <waldron.rick@gmail.com>
Date:   Mon Dec 31 18:06:38 2012 -0500

Only splice from internal arrays when item actually exists.

commit b9cdc4136b
Author: Rick Waldron <waldron.rick@gmail.com>
Date:   Mon Dec 31 16:20:35 2012 -0500

Updates to data.js re-write to pass events and manipulation

commit d1de3000c6
Author: Rick Waldron <waldron.rick@gmail.com>
Date:   Mon Dec 31 15:09:45 2012 -0500

2.0: Rewrite data.js
2013-01-03 20:43:01 -05:00
Dave Methvin
0d540c3750 Happy New Year! It's 2013. 2013-01-03 17:41:18 -05:00
Rick Waldron
f717226b3a Only splice from internal arrays when item actually exists.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-31 18:06:38 -05:00
Rick Waldron
b9cdc4136b Updates to data.js re-write to pass events and manipulation (full pass in local test runs)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-31 16:23:20 -05:00
Rick Waldron
d1de3000c6 2.0: Rewrite data.js
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-31 16:23:20 -05:00
Dave Methvin
e1dcf96b52 Use a fresh input for the value-lossage check. 2012-12-31 15:17:24 -05:00
Dave Methvin
f75c0627f2 Restore optSelected hack still needed by IE9/10 2012-12-31 14:32:58 -05:00
Rick Waldron
6d1080114d Merge branch '2.0-core' of https://github.com/rwldrn/jquery
* '2.0-core' of https://github.com/rwldrn/jquery:
  Explanations for each step of isPlainObject
  obj === Object(obj) comparison is an unnecessary artifact from refactoring
  Ensure that null/undefined args don't choke on native indexOf
  Further reduction, thanks @dcherman
  Straightforward support note
  Straightforward support note
  Remove setTimeout for body existance
  2.0: Reduce globalEval
  2.0: Reduced parseXML
  2.0: Reduce isPlainObject
  2.0: Remove isArray shim
  2.0: Remove now shim
  2.0: Remove inArray shim
  2.0: Remove JSON.parse shim
  2.0: Remove trim shim
  2.0: Removes attachEvent paths for jQuery.ready()
2012-12-31 13:28:04 -05:00
Rick Waldron
57b268e60f Merge branch 'event20' of https://github.com/dmethvin/jquery
* 'event20' of https://github.com/dmethvin/jquery:
  Clean up comments, including browser support levels.
  Remove try/catch around focus events needed by oldIE.
  Remove obsolete event object fixups.
  Remove oldIE proprietary event methods/properties.
  Remove oldIE change and submit special-event code.
2012-12-31 13:26:28 -05:00
Rick Waldron
dc93f8cbb5 Merge branch '2.0-manipulation' of https://github.com/orkel/jquery
* '2.0-manipulation' of https://github.com/orkel/jquery: (51 commits)
  Rename fixCloneNodeIssues helper to fixInput Move support comment
  Add tests for th element
  Add empty line
  Add more tests for wrapMap
  Add test for td append
  wrapMap.col = wrapMap.tr
  wrapMap.thead = wrapMap.tr Add support comments
  Rewrite tests for colgroup, caption Add tests for thead, tbody, tfoot
  Remove fix for #11280
  Remove fieldset from wrapMap
  Add comments for optgroup and option elements in wrapMap Add tests for optgroup element
  Remove fix for #4484, add more tests
  Use tabs instead of spaces
  Simplify getAll helper
  Simplify check for non-Elements
  Remove fix for object element
  Save 43 bytes
  Use common loop iteration idiom
  Remove fix for #9587
  Use correct comments
  ...
2012-12-31 13:26:28 -05:00
Rick Waldron
a205aac7f0 Merge branch '2.0-attributes-rebased'
* 2.0-attributes-rebased:
  2.0: Remove getSetAttribute and getSetInput and oldIE attroperties hooks
  Resolved conflict
  2.0: Remove style->cssText attroproties fallback
  Remove outdated support tests
  2.0: Remove support.optSelected
  2.0: Remove oldIE enctype propFix
2012-12-31 13:26:27 -05:00
Rick Waldron
7539ba5a1e Merge branch 'css2' of https://github.com/dmethvin/jquery
* 'css2' of https://github.com/dmethvin/jquery:
  2.0: Reduce css.js
2012-12-31 13:26:27 -05:00
Rick Waldron
5f5d2e55f7 Merge branch '2.0-traversing' of https://github.com/orkel/jquery
* '2.0-traversing' of https://github.com/orkel/jquery:
  Code style
  Reduce traversing module
2012-12-31 13:26:26 -05:00
Timmy Willison
3f66e928c8 2.0: Remove getSetAttribute and getSetInput and oldIE attroperties hooks 2012-12-31 13:23:32 -05:00
Rick Waldron
d50c18e61f Resolved conflict 2012-12-31 13:23:26 -05:00
Timmy Willison
d96fa37666 2.0: Remove style->cssText attroproties fallback 2012-12-31 13:21:47 -05:00
Timmy Willison
0b91e836a3 2.0: Remove support.optSelected 2012-12-31 13:20:24 -05:00
Timmy Willison
049cc9d1eb 2.0: Remove oldIE enctype propFix 2012-12-31 13:20:24 -05:00
Mike Sherov
abead1c86b Fixes #13088: under IE8, $(selector).attr('style') always return lowercase string 2012-12-31 12:30:02 -05:00
Oleg
39e6792b5c Rename fixCloneNodeIssues helper to fixInput
Move support comment
2012-12-28 23:41:31 +04:00
Oleg
1490afe693 Add empty line 2012-12-28 20:16:49 +04:00
Oleg
ecd106280a wrapMap.col = wrapMap.tr 2012-12-28 19:59:55 +04:00
Oleg
9dbfbe5b9a wrapMap.thead = wrapMap.tr
Add support comments
2012-12-28 19:50:22 +04:00
Oleg
6215840995 Remove fix for #11280 2012-12-28 19:16:22 +04:00
Oleg
378ab82865 Remove fieldset from wrapMap 2012-12-28 19:09:50 +04:00
Oleg
d3d8ed443c Add comments for optgroup and option elements in wrapMap
Add tests for optgroup element
2012-12-28 18:56:29 +04:00
Oleg
f193acf3a1 Remove fix for #4484, add more tests 2012-12-28 18:54:47 +04:00
Dave Methvin
e47dfc6309 Clean up comments, including browser support levels. 2012-12-26 18:38:21 -05:00
Dave Methvin
c228874db1 Remove try/catch around focus events needed by oldIE. 2012-12-26 17:52:04 -05:00
Dave Methvin
69bab50296 Remove obsolete event object fixups. 2012-12-26 17:35:55 -05:00
Dave Methvin
97fa97f0c1 Remove oldIE proprietary event methods/properties. 2012-12-26 16:47:31 -05:00
Dave Methvin
1c4297816d Remove oldIE change and submit special-event code. 2012-12-26 16:06:16 -05:00
Rick Waldron
3746bf8feb Explanations for each step of isPlainObject
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:38 -05:00
Rick Waldron
7e3f96cf3f obj === Object(obj) comparison is an unnecessary artifact from refactoring
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:38 -05:00
Rick Waldron
dcf94a58c7 Ensure that null/undefined args don't choke on native indexOf
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:38 -05:00
Rick Waldron
1d0322f0b1 Further reduction, thanks @dcherman
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:38 -05:00
Rick Waldron
d99f1243b6 Straightforward support note
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:38 -05:00
Rick Waldron
5dbfddc116 Straightforward support note
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:38 -05:00
Rick Waldron
8000c6cf20 Remove setTimeout for body existance
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:37 -05:00
Rick Waldron
f300c5c2f3 2.0: Reduce globalEval
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:37 -05:00
Rick Waldron
155dbad029 2.0: Reduced parseXML
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:37 -05:00
Rick Waldron
338eaf6181 2.0: Reduce isPlainObject
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:37 -05:00
Rick Waldron
716963937d 2.0: Remove isArray shim
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:37 -05:00
Rick Waldron
334d610381 2.0: Remove now shim
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:37 -05:00
Rick Waldron
af06c3c771 2.0: Remove inArray shim
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:37 -05:00
Rick Waldron
bd9498c5ee 2.0: Remove JSON.parse shim
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:36 -05:00
Rick Waldron
25d933909b 2.0: Remove trim shim
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:36 -05:00
Rick Waldron
eb5df5e162 2.0: Removes attachEvent paths for jQuery.ready()
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-26 13:34:36 -05:00
Oleg
25712d77c3 Simplify getAll helper 2012-12-24 04:29:41 +04:00
Oleg
fa3dad300f Simplify check for non-Elements 2012-12-24 04:28:52 +04:00
Oleg
33be48acfd Remove fix for object element 2012-12-24 04:16:17 +04:00
Oleg
5e64281a11 Save 43 bytes 2012-12-24 03:04:38 +04:00
Oleg
5f8e99b368 Use common loop iteration idiom 2012-12-24 03:04:37 +04:00
Oleg
f66c33d751 Remove fix for #9587 2012-12-24 03:04:30 +04:00
Oleg
87a7690afa Use correct comments 2012-12-24 03:04:30 +04:00
Oleg
9256ba5380 Simplify check for empty set in jQuery#domManip 2012-12-24 03:04:30 +04:00
Oleg
9e703a2a19 Code style changes
Save one byte
2012-12-24 03:04:19 +04:00
Oleg
d41ac85ca3 Save one byte 2012-12-24 03:04:19 +04:00
Oleg
3c1b42805d Take care of comments 2012-12-24 03:04:19 +04:00
Oleg
ec75705f88 Remove needless expression 2012-12-24 03:04:19 +04:00
Oleg
0d16158f69 Revert changes in support module 2012-12-24 03:04:18 +04:00
Oleg
3eb1f64966 Use GET method in jQuery#domManip 2012-12-24 03:04:18 +04:00
Oleg
a8b38b0e6b Remove couple of spaces 2012-12-24 03:04:18 +04:00
Oleg
8958f7cd9d More simplifications fore jQuery#html 2012-12-24 03:04:18 +04:00
Oleg
bc70e0c718 Speed up iteration in jQuery#domManip if it called with function inside first argument 2012-12-24 03:04:18 +04:00
Oleg
f07e6758ae Simplify execution of script element if it processed without src attribute 2012-12-24 03:04:08 +04:00
Oleg
d086aa16b3 Use jQuery.merge only if it really necessary 2012-12-24 03:04:08 +04:00
Oleg
d552b94463 Simplify jQuery.expando 2012-12-24 03:04:08 +04:00
Oleg
c334878871 Simplify wrapMap 2012-12-24 03:04:08 +04:00
Oleg
1043fa8971 Move all helpers to the end of the module 2012-12-24 03:04:08 +04:00
Oleg
a10dd521df Remove fixDefaultChecked helper 2012-12-24 03:03:28 +04:00
Oleg
61d01c8d35 Simplify getAll helper 2012-12-24 03:03:28 +04:00
Oleg
7a5000a39e Simplify fixCloneNodeIssues helper 2012-12-24 03:03:28 +04:00
Oleg
329d5e1d03 Remove memory fix 2012-12-24 03:03:28 +04:00
Oleg
e9ea6679b2 Change "isFunc" variable to "isFunction" 2012-12-24 03:03:28 +04:00
Oleg
76bde01be8 Code style changes 2012-12-24 03:03:28 +04:00
Oleg
8c4b9f082b Simplify jQuery#wrap 2012-12-24 03:03:28 +04:00
Oleg
2378438a97 Code style changes 2012-12-24 03:03:27 +04:00
Oleg
28f6fcb763 Remove unused variables 2012-12-24 03:03:19 +04:00
Oleg
eac4e8e251 Remove removal of container children through removeChild method 2012-12-24 03:03:19 +04:00
Oleg
7a2a82ba62 Remove tbody check 2012-12-24 03:03:19 +04:00
Oleg
c1c97b474e Remove leading white space check 2012-12-24 03:03:19 +04:00
Oleg
fd2af63bca Remove createSafeFragment helper 2012-12-24 03:03:19 +04:00
Dave Methvin
861a45b8ff Followup to gh-1089. Avoid duplicate typeof check. 2012-12-23 15:57:01 -05:00
Sebi Burkhard
5eec75e582 Fix #13075. Optimize $.type by preferring typeof. Close gh-1089.
Also fixes browsers where `typeof RegExp === "function"`.
2012-12-23 15:41:56 -05:00
Sebi Burkhard
d829804631 Fix #13076. Speed up $() with strings, part of gh-1089. 2012-12-23 15:09:10 -05:00
Richard Gibson
3e1589db32 Update Sizzle 2012-12-21 15:51:37 -05:00
Richard Gibson
1e7e541b8b Fix 00bbbe20 test failures 2012-12-21 10:34:03 -05:00
Oleg
c8c6ab6924 Fix #12569. Improve feature detect for event bubbling. Close gh-1076. 2012-12-20 22:08:32 -05:00
Richard Gibson
00bbbe2075 Fix #13070: better unescaping logic in Sizzle 2012-12-20 21:56:53 -05:00
Oleg
5afc93c436 Fix #13094. Pass index to .before(fn) fn as documented. Close gh-1093. 2012-12-20 20:55:30 -05:00
Oleg
38941579fc Code style 2012-12-19 19:42:33 +04:00
Oleg
65bdfbf07f Reduce traversing module 2012-12-19 19:42:33 +04:00
Dave Methvin
1e0eca0f77 2.0: Reduce css.js 2012-12-18 22:21:32 -05:00
Dave Methvin
eed78cc321 Fix #13078. Remove .live() and .die(). Great rejoicing. 2012-12-18 13:24:05 -05:00
Timmy Willison
963c47f9ed Sizzle: :lang updates for handling backslashes, xml, and inheritance 2012-12-18 11:50:54 -05:00
Timmy Willison
5c8984efc4 Sizzle: QA for :lang from gibson 2012-12-17 15:13:09 -05:00
Timmy Willison
d6d6c3efe7 Sizzle: add support for :lang selector 2012-12-17 12:10:22 -05:00
Richard Gibson
06f46dad93 let .attr(checked|selected, true) update the property 2012-12-16 10:39:19 -05:00
Richard Gibson
a763ae7277 Fix #11115: Normalize boolean attributes/properties. Close gh-1066. 2012-12-15 23:16:48 -05:00
Timmy Willison
55a8ba5226 Sizzle: size optimization 2012-12-15 13:05:58 -05:00
Timmy Willison
54cbcf1f3d Sizzle: initialize with default document on load to get it out of the way for most use cases 2012-12-15 12:50:30 -05:00
Timmy Willison
d907848642 Sizzle: assume window.document in Sizzle.matches; massively reduce calls to setDocument by not calling when context is null 2012-12-15 10:50:35 -05:00
Timmy Willison
cc164a36f4 Update Sizzle 2012-12-15 10:33:33 -05:00
Timmy Willison
8424933153 Update Sizzle: avoid calling setDocument when possible 2012-12-15 10:26:24 -05:00
Richard Gibson
60fdc12b96 Update Sizzle 2012-12-15 01:26:18 -05:00
Timmy Willison
73689060ef Update Sizzle: IE6-8 traversing test fix 2012-12-14 19:06:31 -05:00
Timmy Willison
8b4cdbb663 Sizzle: fix test failures related to Sizzle.contains 2012-12-14 19:00:41 -05:00
Timmy Willison
04bcb173a0 Sizzle: :target and :root selector support. adds Sizzle.setDocument. Remove :active support. 2012-12-14 17:24:39 -05:00
Richard Gibson
2c40fdd4a8 Fix #12600: don't use value property in place of value attribute. Close gh-1063. 2012-12-14 10:37:20 -05:00
timmywil
05531fc408 Adjust jQuery('html') detection to only match when html starts with '<' (not counting space characters). Fixes #11290. 2012-12-13 15:31:02 -05:00
Richard Gibson
452e32769d compress -16 min+gzip 2012-12-13 12:41:25 -05:00
Oleg
643ecf9d63 Ref #8908, gh-886. Avoid clone identity crisis in IE9/10. Close gh-1036. 2012-12-13 10:42:43 -05:00
Scott González
a270d638f8 CSS: Save some bytes. Close gh-1071. 2012-12-13 10:06:06 -05:00
Oleg
13651f296d Fix #9646. Cloned nodes shouldn't affect original in IE7. Close gh-947. 2012-12-13 09:29:40 -05:00
Dave Methvin
0018f7700b Fix #11230. .appendTo and pals should always stack. 2012-12-13 09:19:41 -05:00
Paul Ramos
f12611feb4 Fix #4087. insertAfter, insertBefore, etc do not work if origin and destination are same element. Close gh-1068. 2012-12-11 23:35:22 -05:00
Dave Methvin
aad235b325 Fix #13011. Let 'type' attribute be set if the browser allows. 2012-12-11 23:16:08 -05:00
Richard Gibson
1d1c80d377 copy defaultSelected in cloneFixAttributes 2012-12-11 23:05:18 -05:00
Bennett Sorbo
32842ac365 Fix #12990. Don't add 'px' to column-count. Close gh-1050. 2012-12-11 22:38:37 -05:00
Oleg
93e18922c5 Fix #12956. Improve cloneFixAttributes for IE9/10 case. Close gh-1034.
Remove clear(merge)Attributes hack
2012-12-11 22:06:26 -05:00
Mike Sherov
ef6d8779de Fixes #11938: Adding array getter method to jQuery.fn.css 2012-12-11 13:58:14 -05:00
Mike Sherov
a918dc8aac Pass style declarations around for performance improvements and paving the way for the css array signature
Also, simplify the jQuery.css numeric coercion signature
2012-12-11 13:58:14 -05:00
Richard Gibson
aa0e4aadd5 Update Sizzle 2012-12-11 09:25:37 -05:00
Timo Tijhof
55313d32a2 Test: Update index.html to new QUnit format. Close gh-1061.
Depends on jquery/sizzle#177, included with the Sizzle submodule in this commit.
2012-12-10 21:48:20 -05:00
Oleg
d41b983259 Fix #10417. setTimeout w/o 2nd arg is jQuery.later! Close gh-1065. 2012-12-10 20:51:49 -05:00
Rick Waldron
3c7f2af81d Be specific about Firefox nodes-as-nodelist. Never assume that modern browsers will "get it right".
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-10 20:19:26 -05:00
Rick Waldron
07a7b3e4cf Fixes #13021. Normalization of core utility array like detection based on standard protocol by Richard Gibson <richard.gibson@gmail.com>. Closes gh-1064 2012-12-10 13:52:02 -05:00
Rick Waldron
7d5b86ec39 Refactor defaultDisplay's node creation and display logic, -6 2012-12-10 10:05:39 -05:00
Dave Methvin
2eda329be6 Ref #13019 and gh-1062. Use parentNode check instead of isDisconnected(). 2012-12-09 14:46:06 -05:00
Dave Methvin
f8f52cfcf4 Fix #13019. Disconnected nodes with .replaceWith are a noop. Close gh-1062. 2012-12-09 14:10:38 -05:00
Richard Gibson
d343e6b9ed Fix #12904: Firefox defaultDisplay with body/iframe display:none. Report and solution by @maranomynet; test by @rwldrn. 2012-12-08 18:04:13 -05:00
jaubourg
23d7cf0488 Deferred: .resolve(), .reject() and .notify() now set the callback context to the promise instance rather than the deferred instance ; .then() has also been amended. Fixes #11405. 2012-12-07 15:14:12 +01:00
Dave Methvin
282c044d64 Fix #13013. Move jQuery.buildFragment() to compat plugin. 2012-12-06 21:17:27 -05:00
Timo Tijhof
5dd8a90f73 Make compatible with jshint, lint test/data. Close gh-1043. 2012-12-06 13:46:37 -05:00
Richard Gibson
26bf8dd56b once more with feeling 2012-12-05 23:47:33 -05:00
Richard Gibson
9bfe9e7dfb don't test SVG on IE6 2012-12-05 23:30:53 -05:00
Richard Gibson
abe009cf26 Fix #10832 (this time with tests): jQuery.contains in SVG 2012-12-05 22:42:54 -05:00
Rod Vagg
551c2c9f4a Fixes #12449. make replaceWith() clone elements where required. Closes gh-920 2012-12-04 21:50:22 -05:00
Paul Ramos
13449a99b2 Fix #11989. Remove fragment cache, moving to jquery-compat. Close gh-1052. 2012-12-04 21:30:37 -05:00
Richard Gibson
3ab26340dc Fix #12856: keep PSEUDO regex non-greedy 2012-12-03 23:43:34 -05:00
Dave Methvin
c2d6847de0 Fix #12989. Remove ajax "global" event behavior. 2012-12-01 20:29:32 -05:00
jaubourg
e63625e16e Fixes awkward spacing 2012-11-29 17:28:16 +01:00
jaubourg
8a79be7894 Simplifies how url is kept devoid of anti-cache parameter for ifModified requests. Also, renames ifModifiedKey to cacheURL so that it now conveys the variable's nature rather than its purpose. -5 min/gzipped. 2012-11-29 17:16:42 +01:00
Matt Farmer
081c4efcf7 Alias options.method to options.type. Fixes #12004. 2012-11-28 23:59:37 +01:00
Oleg
9ae6b1a019 Fix #12957. Simplify wrapMap, it doesn't need end tags. Close gh-1044. 2012-11-27 21:32:59 -05:00
Richard Gibson
1052f9cb2b save a byte 2012-11-27 09:53:30 -05:00
Richard Gibson
243d4cc83c Don't let removeClass create attributes 2012-11-27 09:46:06 -05:00
Richard Gibson
0877d424e0 Fix #12959: Optimize library-wide patterns 2012-11-27 01:59:22 +01:00
Corey Frang
516a7a8792 Fix #12803. Add jQuery.fx.start as a hook point. Close gh-1024. 2012-11-25 15:23:02 -05:00
Scott González
84629a9b87 Fix #12869. Zoom the body after support tests; avoids layout changes in IE8/9/10 in IE7 mode. Close gh-1025. 2012-11-25 15:16:16 -05:00
Dave Methvin
ae215fdcf8 Fix #12134. Make .serialize() HTML5-compliant; provide a propHook for shimming. 2012-11-25 14:54:07 -05:00
Richard Gibson
a938d7b128 No ticket: compress ajax. Close gh-1041. 2012-11-25 13:07:46 -05:00
Dave Methvin
67df705bf5 Fix #12191. jQuery.type should return "error" for Error objects. 2012-11-24 17:22:14 -05:00
dcooper
78c1560065 Fix #9960, allow manipulation for parent document nodes. Close gh-924. 2012-11-24 16:53:27 -05:00
Dave Methvin
3fce794844 Fix #12733. Ignore excess spaciness in event strings.
Thanks @bentruyman!
2012-11-24 16:05:20 -05:00
Dave Methvin
b7ec6ddd45 Fix #12868. Use native focus/blur to get event order right. 2012-11-24 14:44:39 -05:00
Dave Methvin
1fb2f92c35 Fix #3827. Get the correct checkbox status for a click handler. 2012-11-24 14:08:51 -05:00
Timo Tijhof
4fed8eb86d Set async to true instead of async (prop vs. attr). Closes gh-1039 2012-11-21 21:47:59 -05:00
Richard Gibson
bb570fc373 Fix #12920: remove addMandatoryAttributes. Close gh-1037. 2012-11-20 22:57:41 -05:00
Richard Gibson
22f58bd688 fix Safari test failures 2012-11-19 17:17:48 -05:00
Richard Gibson
e889134058 Fix #11795, #10470: keep scripts in DOM; execute only on first insertion. Close gh-864. 2012-11-19 09:50:19 -05:00
aFarkas
ca5e06a15c Fix #12915, add propHook for scrip src property on oldIE. Close gh-1035. 2012-11-18 21:20:12 -05:00
Dave Methvin
20be650bae Merge branch 'x8908' 2012-11-18 14:56:46 -05:00
Elijah Manor
5904468b9c Fix #8908. Don't let change to originals affect clones in IE9/10. Close gh-886. 2012-11-18 14:49:36 -05:00
Richard Gibson
d08d48337f update Sizzle 2012-11-16 15:57:43 -05:00
Dave Methvin
05fb5de3ee Revert "Fixes #12569. Improve Feature Detect For oldIE bubbling. closes gh-967"
This reverts commit 063ea024e9.

I've beaten on this for a while and can't find a suitable feature detect that catches Chrome's support for focusin.
2012-11-14 21:09:12 -05:00
Dave Methvin
02c726f71c Fix #12777. Add applet to non-cacheable fragment types.
I don't want to add a unit test that creates a dependency on an applet.
2012-11-13 10:30:25 -05:00
Richard Gibson
e78cfb1a37 Fix #12858: don't expose jQuery/Sizzle expandos 2012-11-09 23:43:46 -05:00
Corey Frang
877306738f Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemella @curiousdannii - Closes gh-1019 2012-11-07 21:29:55 -06:00
Corey Frang
c45f6095f2 Keep track of a hiding state for toggle based animations - Fixes #8685
Closes gh-1018
2012-11-07 19:23:24 -06:00
Corey Frang
781a5c0b78 Ensure each tick gets it's own fxNow - Fixes #12837 - Thanks @chadparry
Closes gh-1022
Closes gh-1021
2012-11-07 19:22:14 -06:00
Dave Methvin
6b14cef7a8 Remove APIs now in jquery-compat 2012-11-07 20:12:03 -05:00
Richard Gibson
0ee9415902 Restore jQuery.access parameter mistakenly removed in 80d45a69 2012-11-06 09:53:00 -05:00
Richard Gibson
80d45a69ea Fix #12840: remove undocumented parameter "pass" from .attr. Close gh-1017. 2012-11-05 17:21:24 -05:00
Dave Methvin
68f001e709 Must attach the .selector to the new jQuery object. 2012-11-01 21:40:01 -04:00
Oleg
f651bf8893 Follow-up for .selector property removal 2012-11-01 21:31:55 -04:00
Dave Methvin
240b141a22 Fix #10299. Add a propHook for oldIE link href. 2012-11-01 20:50:45 -04:00
Dave Methvin
9c2f000567 Remove unneeded parameter hockey in event shortcuts. 2012-11-01 19:48:21 -04:00
Dave Methvin
dc9913a0bf Fix #12828. Remove non-standard event properties. 2012-11-01 17:57:23 -04:00
Dave Methvin
395f1da76b Fix #12827. Remove exclusive event semantics from .trigger().
No unit tests were removed in the undoing of this feature. 😭
2012-11-01 16:56:35 -04:00
Dave Methvin
5ed0450dc4 Fix #12816. Ensure .find() result are DOM ordered. 2012-10-31 22:43:04 -04:00
Dave Methvin
e8cf41a051 Fix #10544. Remove deprecated .data() event namespaced triggering.
Data events were horribly slow, never documented, and caused strange interpretation of data items with dots in them.
2012-10-31 21:27:42 -04:00
Mike Sherov
e8f91514a6 Fix #12009. $().find( DOMElement ) should pushStack properly. Close gh-927. 2012-10-30 13:32:53 -04:00
yiminghe
c78a3ba657 Fix #12685. Handle inconsistent opacity for ie < 9. Close gh-1005. 2012-10-30 10:20:54 -04:00
Oleg
bea5ecbba7 Fix #10416. Don't trust computed styles on detached elements. Close gh-941. 2012-10-28 23:32:54 -04:00
Timo Tijhof
36c9ecb0f5 Implement expectation test instead of using _removeData. Close gh-997.
* Removed inline usage of QUnit.reset() because it is messing with the
  expectation model as reset does .empty() which does a recursive cleanData
  on everything in #qunit-fixture, so any expectJqData above .reset() would
  fail negatively.

  Instead of calling reset inline, either updated the following assertions to
  take previous assertions' state into account, or broke the test() up into
  2 tests at the point where it would call QUnit.reset.

* After introducing the new memory leak discovery a whole bunch of tests were
  failing as they didn't clean up everything. However I didn't (yet) add
  QUnit.expectJqData calls all over the place because in most if not all of
  these cases it is valid data storage. For example in test "data()", there
  will be an internal data key for "parsedAttrs". This particular test isn't
  intending to test for memory leaks, so therefor I made the new discovery
  system only push failures when the test contains at least 1 call to
  QUnit.expectJqData.

  When not, we'll assume that whatever data is being stored is acceptable
  because the relevant elements still exist in the DOM anyway (QUnit.reset
  will remove the elements and clean up the data automatically).

  I did add a "Always check jQuery.data" mode in the test suite that will
  trigger it everywhere. Maybe one day we'll include a call to everywhere,
  but for now I'm keeping the status quo: Only consider data left in storage
  to be a problem if the test says so ("opt-in").

* Had to move #fx-tests inside the fixture because ".remove()" test would
  otherwise remove stuff permanently and cause random other tests to fail
  as "#hide div" would yield an empty collection.
  (Why wasn't this in the fixture in the first place?)

  As a result moving fx-tests into the fixture a whole bunch of tests failed
  that relied on arbitrary stuff about the document-wide or fixture-wide
  state (e.g. number of divs etc.). So I had to adjust various tests to
  limit their sample data to not be so variable and unlimited...

* Moved out tests for expando cleanup into a separate test.

* Fixed implied global variable 'pass' in effects.js that was causing
  "TypeError: boolean is not a function" in *UNRELATED* dimensions.js that
  uses a global variable "pass = function () {};" ...

* Removed spurious calls to _removeData. The new test exposed various failures
  e.g. where div[0] isn't being assigned any data anyway.
  (queue.js and attributes.js toggleClass).

* Removed spurious clean up at the bottom of test() functions that are
  already covered by the teardown (calling QUnit.reset or removeClass to
  supposedly undo any changes).

* Documented the parentheses-less magic line in toggleClass. It appeared that
  it would always keep the current class name if there was any (since the
  assignment started with "this.className || ...".

  Adding parentheses + spacing is 8 bytes (though only 1 in gzip apparently).
  Only added the comment for now, though I prefer clarity with logical
  operators, I'd rather not face the yayMinPD[1] in this test-related commit.

* Updated QUnit urlConfig to the new format (raw string is deprecated).

* Clean up odd htmlentities in test titles, QUnit escapes this.
  (^\s+test\(.*)(&gt\;) → $1>
  (^\s+test\(.*)(&lt\;) → $1<

[1] jQuery MinJsGz Release Police Department (do the same, download less)
2012-10-28 22:44:57 -04:00
Oleg
18e7a53d15 Elements created from html strings have a parentnode. Fixes #12392 2012-10-25 20:41:47 -04:00
Daniel Gálvez
b398a68333 Fix #11542. document.body should not be special in .offset() and document.documentElement is the default element.offsetParent. Close gh-899. 2012-10-24 23:35:15 -04:00
Dave Methvin
69e2f068fe Fix #9469. Remove semi-functional .selector property. Close gh-1006.
Saved 65 bytes.
2012-10-24 22:36:20 -04:00
Rick Waldron
812c6087ad Brute force property removal when removeData([a,b,c]). Fixes #12786
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-10-24 14:12:28 -04:00
Timmy Willison
2eff7fe72d Sizzle: remove unneeded vars and POS regex (-22 bytes) 2012-10-24 10:35:08 -04:00
Mike Sherov
bede0123d9 new JSHINT mixed spaces/tabs is smart enough to not warn on multiline comments, rendering smarttabs useless 2012-10-22 13:29:43 -04:00
Matthias Jäggli
227c49a459 Fix #12411, .removeClass(undefined) is a chaining no-op. Close gh-913.
.removeClass() //removes all classes, as documented
.removeClass(window.nonExistentVariable) // removes nothing
2012-10-21 21:06:41 -04:00
Oleg
9dd0b01017 Fix #12061. Avoid window.onbeforeunload to permit multiple handlers. Close gh-894. 2012-10-20 22:29:18 -04:00
Dave Methvin
08341437e0 Remove deprecated $.uuid and dunseled $.deletedIds. 2012-10-20 22:18:29 -04:00
Marcel Greter
de9ff7cd17 Fix #12107. Let .proxy() curry args without overwriting context. Close gh-866. 2012-10-20 22:10:06 -04:00
Oleg Gaidarenko
cafb542da9 Alternate fix for #11426; check responseText. Close gh-843. 2012-10-20 21:25:39 -04:00
Rick Waldron
8076a33bd8 Don't expose jQuery.deletedIds. Close gh-889. 2012-10-20 21:02:21 -04:00
Sai Wong
2b0e720406 Fix #12048. Set attributes for XML fragments. Close gh-965. 2012-10-20 15:27:43 -04:00
Merrifield, Jay
408e5e08c2 Fixes #12518, removes an offsetWidth on focus/blur events for an <IE9 bug that caused a performance hit. Closes gh-958 2012-10-20 14:00:30 -04:00
Sai Wong
5228f0a618 Fix #12610, remove unneeded window.event. Close gh-968. 2012-10-20 10:07:01 -04:00
Richard Gibson
b5084b4bf2 Fix #4262: faster .eq(), closes gh-1000. 2012-10-19 22:32:25 -04:00
Allen J Schmidt Jr
c6cf30a56e Fix #12739. Keep namespace when triggering with an Event. Close gh-972. 2012-10-19 16:42:13 -04:00
jaubourg
9346c0ef99 adds strict rule to jshint options (except for test files). "use strict" is added to the main jQuery closure and some "could-be-unsafe" this trickery in effects is silenced. 2012-10-18 00:50:01 -04:00
James Huston
ee9687d441 Fix #12751. Ensure parseJson throws in the same situations as JSON.parse. Close gh-993. 2012-10-17 16:28:55 -04:00
Richard Gibson
c31539c8a2 no ticket: fix jQuery suite failure on Android 2012-10-17 15:20:50 -04:00
Merrifield, Jay
063ea024e9 Fixes #12569. Improve Feature Detect For oldIE bubbling. closes gh-967 2012-10-17 15:02:31 -04:00
Merrifield, Jay
425272aea1 Fixes #12749, correctly detect position() for position:fixed elements, closes gh-991 2012-10-17 13:41:49 -04:00
Mike Sherov
16d996ba0c no ticket: remove and enforce unused vars in jshint 2012-10-17 12:52:12 -04:00
Timmy Willison
7607068faa Update Sizzle: fixes failing tests in traversing (FF, Opera, Safari) 2012-10-17 11:13:26 -04:00
Sai Wong
0c1cea3761 Refactored before/after/replaceWith to not pushStack. Fixes #12664, closes gh-987 2012-10-16 16:50:40 -04:00
Timmy Willison
f47e3da3c2 Sizzzzzzllllleeeee 2012-10-16 16:42:21 -04:00
jaubourg
8bae5e19af Uses an additive approach to generating anti-cache parameters rather than a timestamp. Fixes #12550 2012-10-16 16:08:13 -04:00
Timmy Willison
f9f034db6f Update Sizzle: <3 reverts 2012-10-16 15:23:03 -04:00
Dave Methvin
947acfc32e Merge branch 'master' of github.com:jquery/jquery 2012-10-16 15:15:00 -04:00
Daniel Galvez
ef7bce7e5c Fix #11280. IE6-8 need name attribute to parse param. Close gh-914. 2012-10-16 15:07:44 -04:00
Rick Waldron
aeb036893d Fixes busted indents. Sorry folks 2012-10-16 15:07:18 -04:00
Richard Gibson
0ea348bb5b update sizzle for test failures 2012-10-16 15:03:33 -04:00
Rick Waldron
1fdc0b7f78 Replace unknown, mysterious html arg to replaceWith(fn...), with just the current node. 2012-10-16 15:01:59 -04:00
Greg Lavallee
e83bc970f2 Fixes #12736. Move hover event hack to deprecated.js for removal in 1.9. Closes gh-982.
Signed-off-by: Timmy Willison <timmywillisn@gmail.com>
2012-10-16 14:47:11 -04:00
Timmy Willison
bf145b6f3e Sizzle was accidentally reverted 2012-10-16 13:28:57 -04:00
Mike Petrovich
861476eb3f Fixes #11635, Explicit overflow:auto is overridden by inline overflow:hidden during animation, closes gh-981 2012-10-16 12:30:28 -04:00
Timmy Willison
420dcc5842 Update Sizzle: allows disconnected sorting. Change add to always sort with added nodes, even when disconnected. 2012-10-16 11:54:54 -04:00
Ben Truyman
ce5784a480 Handle a falsy URL in the settings object for jQuery.ajax. Fixes #10093, Closes gh-979 2012-10-16 11:37:15 -04:00
Mike Sherov
fcaef88968 Clean up jshintrc configs. Close gh-983. 2012-10-16 11:28:11 -04:00
carldanley
08e134548f Create private methods for processing data/removeData requests. Fixes #12519, Closes gh-976 2012-10-16 11:15:41 -04:00
MORGAN
4bb46f413a Return correct index for no-arg index() calls. Fixes #10977. Closes gh-971 2012-10-16 10:25:08 -04:00
Mike Sherov
ed9e34482a enforce double quotes via JSHint. Closes gh-975 2012-10-16 10:17:14 -04:00
Akintayo Akinwunmi
78617f067a Moved attrFN to deprecated. Close gh-977. 2012-10-16 10:01:18 -04:00
jaubourg
6eacf67e30 Merge branch 'master' of github.com:jquery/jquery 2012-10-16 09:41:15 -04:00
jaubourg
40f9ab9cdf better, more maintainable version of the prefilters execution and transport selection 2012-10-16 09:40:42 -04:00
Erick Ruiz de Chavez
efc2d8b1a6 Fixing style for deferred.js unit tests. Close gh-973.
Close jquery/2012-dev-summit/#56
2012-10-16 08:24:18 -04:00
Mike Sherov
d70e64bff2 fix effects tests failure 2012-10-16 00:17:39 -04:00
Rick Waldron
6aae3e1038 Latest JSHint gets cranky with the _ vars in catch() {} 2012-10-15 18:05:36 -04:00
David Bonner
9104a3d5f2 Deprecate fn toggle Closes gh-970 https://github.com/jquery/2012-dev-summit/issues/24 2012-10-15 17:20:33 -04:00
Timmy Willison
add8503036 Update Sizzle: focus test was failing if browser window was not in focus 2012-10-15 16:09:58 -04:00
Timmy Willison
cb67571dd2 Sizzle: Fix :focus selector with elements that have a tabIndex !== -1 2012-10-15 10:40:32 -04:00
Timmy Willison
077989e8c0 Update Sizzle: Fixes #12606, #12671, #12672. 2012-10-14 12:07:05 -04:00
Dave Methvin
1450305402 Use the correct escape for BOM; add build code to detect non-ASCII. 2012-10-11 10:25:43 -04:00
Dave Methvin
798a7a7ea2 Use Uglify's ascii_only to avoid converting UTF-8 escapes.
Thanks @curiousdannii!
2012-10-11 09:39:21 -04:00
Dave Methvin
a60fed4dec Fix #12690. Avoid use of UTF-8 chars in final files. 2012-10-10 13:00:45 -04:00
jaubourg
bb38f70646 Do not iterate over functions. Fixes #12665. Unit tests added. Thanks to @kselden for finding the bug. 2012-10-06 22:00:43 +02:00
Rick Waldron
60f546acb1 body default display is always block. @mikesherov was right and this is the proof. Fixes #10227 2012-10-04 13:25:50 -04:00
Timmy Willison
52a8422559 Sizzle: throw an invalid selector exception for trailing-comma selectors. Fixes #12643. 2012-10-04 09:49:20 -04:00
Richard Gibson
425d17de83 Fix #12583: Don't ignore disabled property of select-one, close gh-932. 2012-10-03 21:14:08 -04:00
Richard Gibson
da3ff3afe4 Fix #12637: restore 1.8.1 ajax crossDomain logic. Close gh-944. 2012-10-03 21:07:50 -04:00
Mike Sherov
9ced027465 Fix #12537, element.css('filter') returns undefined in IE9. Close gh-942. 2012-09-30 22:14:49 -04:00
Richard Gibson
22fac5c2e4 Fix #12357: be more kind to non-browser environments. Close gh-938. 2012-09-30 20:54:28 -04:00
Timmy Willison
022b265956 Sizzle: removes nth-child cache 2012-09-20 17:00:43 -04:00
Timmy Willison
a44463f83f Sizzle: account for external document contexts (such as iframes) in combinator checks. Fixes #12572. 2012-09-20 12:00:57 -04:00
Timmy Willison
6ad4a0ef34 Update Sizzle: fix a failing test in traversing. Move an attribute selector test to jQuery-only. 2012-09-19 20:46:18 -04:00
Timmy Willison
c9b894c98c Sizzle: fixes failing test in css 2012-09-19 12:30:57 -04:00
Timmy Willison
99f4825707 Update Sizzle: fix position caching with child selectors. Fixes #12337. 2012-09-19 12:04:09 -04:00
Timmy Willison
2f92685a9c Fixes failing tests in selector/traversing 2012-09-19 12:00:47 -04:00
Timmy Willison
f7980d4d68 Update Sizzle: Fixes #12303, #12474, #12523, #12526, #12541. 2012-09-19 11:32:02 -04:00
Richard Gibson
15b5dbfe23 Fix #12229, size/consistency improvements. Close gh-887. 2012-09-18 18:04:31 -04:00
Dave Methvin
e8e3e90a86 Fix #12423. Ensure we can .apply() before we try.
I can't think of an uncontrived way to unit test this, it only occurs in IE when a BHO monkeys with the links.
2012-09-18 14:26:40 -04:00
Richard Gibson
e755c19416 Fix #12447: Ensure starting-point calc takes finite time. Close gh-922. 2012-09-15 13:10:37 -04:00
Dave Methvin
560c178c82 Fix #12536. Start at .offset() 0,0 if no getBoundingClientRect.
This lets us still add the other offset components to the number so they're less wrong. Affects BlackBerry 5 and iOS 3, everyone else has gBCR.
2012-09-14 10:15:10 -04:00
Dave Methvin
b0a352bfa7 Fix #12534. Don't die on browsers lacking getBoundingClientRect. 2012-09-13 18:47:07 -04:00
jaubourg
74cdd78497 deferred.promise(obj) should work with non-objects. Fixes #12521. Much needed unit tests added! 2012-09-13 15:44:12 +02:00
Timmy Willison
01d4065220 Sizzle: fix selector in Chrome 21. Fixes #12492. 2012-09-11 14:50:23 -04:00
Timmy Willison
71c1ae1718 Sizzle: tagged versions are now in the repo; update selector engine list 2012-09-11 13:10:59 -04:00
Dave Methvin
9b67b4c0ef Fix #12436, make delegated events fast again. Close gh-923.
Retains the rooted-at-delegateTarget behavior fixed in #12383 by afd717df9e.
2012-09-09 21:21:42 -04:00
Dave Methvin
c79a533ffd Remove useless guard for a. Close gh-918.
Thanks @staabm!
2012-09-09 21:21:08 -04:00
Timmy Willison
1c99b568fd Sizzle: adjustment for speed totals display 2012-09-08 14:31:31 -04:00
Timmy Willison
bc3a47f83a Update Sizzle: adds custom performance suite for testing across multiple selector engines and multiple versions of Sizzle 2012-09-08 13:06:17 -04:00
Timmy Willison
1ad614b4a9 Update Sizzle: authors.txt update and fix failing tests caused by QUnit's html addition 2012-09-05 18:13:31 -04:00
Dave Methvin
0ca936d2c9 Fix #12370. Explicitly coerce bool/undef to integer. 2012-08-30 10:47:47 -04:00
Timmy Willison
3a633b0082 Sizzle: POS selectors make more extensive use of tokenization. Fixes #12303.
http://jqbug.com/12303
2012-08-29 12:49:39 -04:00
Mike Sherov
670e3ff040 Fix #12243, $("col").width() should return the column's width. Close gh-916. 2012-08-29 12:34:12 -04:00
Timmy Willison
be2899b3b1 Sizzle: tweak for root selector shortcut. Fixes #12419. 2012-08-29 10:40:15 -04:00
Timmy Willison
9683f82d9d Update Sizzle: minor edits 2012-08-29 00:04:52 -04:00
Timmy Willison
fbdf8bed4f Sizzle: support negative numbers in :eq. Fixes #12241. 2012-08-28 20:34:23 -04:00
Timmy Willison
a66b5c7569 Sizzle: adjust caching to avoid IE errors on xml descendent selectors. Fixes #12369. 2012-08-28 20:09:37 -04:00
Timmy Willison
c2f298c8e5 Sizzle: use tokenization to complex check pseudo arguments. Fixes #12412. 2012-08-28 19:47:45 -04:00
Dave Methvin
b6a7d022ee Fix #12347 and #12384. Use a fresh div in jQuery.clean each time.
Regression was introduced in 22ad8723ce most likely because the clown who fixed http://bugs.jquery.com/ticket/4011 didn't add a unit test.
2012-08-28 17:02:01 -04:00
Timmy Willison
7d076f5d79 Reverting Sizzle is bad, Dave. 2012-08-28 11:31:13 -04:00
Dave Methvin
84e45301c5 Update placeholder references to tickets. 2012-08-28 10:09:22 -04:00
Dave Methvin
afd717df9e Fix #12383. All selectors should be delegateTarget-relative 2012-08-28 10:07:16 -04:00
Mike Sherov
c078b83b3f Fix #12313, .height()/.width() just use CSS if no offsetWidth. Close gh-909. 2012-08-28 08:56:06 -04:00
Dave Methvin
9a92c5423f Update authors. 2012-08-28 08:52:09 -04:00
Timmy Willison
3ec8daa69d Update Sizzle: size reduction, -85 bytes 2012-08-27 17:44:47 -04:00
Timmy Willison
f15eb3ce5b Sizzle: provide backwards-compatibility for creating custom pseudos with arguments. Fixes #12409. 2012-08-27 16:53:57 -04:00
Timmy Willison
157c561c15 Sizzle: make html from assertions xhtml compliant. Fixes #12359. 2012-08-27 12:39:14 -04:00
Timmy Willison
f42cc8eab8 Sizzle: fix compilation of the same selector with different contexts. Fixes #12403. 2012-08-27 10:20:18 -04:00
Timmy Willison
2be615eaa1 Update Sizzle: passing null to $.contains should not throw an error. Fixes #12314 2012-08-24 18:08:13 -04:00
Timmy Willison
b2698928bb Update Sizzle: Use tokenization rather than regex for grouping. Fixes #12237, #12205, #12285. 2012-08-24 17:43:54 -04:00
Dave Methvin
05337e78fa Revert "Fix #11586. Ajax DELETE ain't got no body, so data goes to its URL."
This reverts commit c01e022f33.

We actually changed DELETE to accept a body on purpose, see http://bugs.jquery.com/ticket/7285 .
2012-08-24 11:59:01 -04:00
Dave Methvin
a5be986206 Revert "Fix #12120. Always stack .before/.after, and fix disconnected nodes."
This reverts commit e2eac3f4d2.

There is a 1.7 regression with isDisconnected() that we should fix before tackling this.
2012-08-24 11:57:48 -04:00
Dave Methvin
e2eac3f4d2 Fix #12120. Always stack .before/.after, and fix disconnected nodes. 2012-08-23 23:25:57 -04:00
Dave Methvin
2263134b22 Fix #10863. Allow newlines in JSON data- attributes. 2012-08-23 22:19:06 -04:00
Dave Methvin
c01e022f33 Fix #11586. Ajax DELETE ain't got no body, so data goes to its URL. 2012-08-23 21:33:29 -04:00
Mike Sherov
a9c2a9bf61 Scorch the earth and retreat on readyState interactive! Close gh-907. 2012-08-23 20:28:22 -04:00
Elijah Manor
10901f7d9f Fix #12266. IE9/10 says document[0] is document.frames[0]? Close gh-903. 2012-08-22 21:48:02 -04:00
Richard Gibson
9e246dd7fa Fix #12350: jQuery.trim should remove BOM 2012-08-21 08:59:51 -04:00
Dave Methvin
465959e75c Fix #12333. Chrome needs $.browser.webkit too. 2012-08-20 23:09:46 -04:00
Dave Methvin
ac043b1bc8 Revert "Fix #12350. Remove BOM in jQuery.trim. Close gh-897."
This reverts commit 2b5b4ebbd7.

String.prototype.trim doesn't trim BOM in Safari 5.0 so this won't work without additional feature detects.

http://swarm.jquery.org/result/165379
2012-08-20 09:33:35 -04:00
Mike Sherov
0f553ed0ca Fix #12282. IE has premature .readyState == "interactive". Close gh-901. 2012-08-20 08:16:07 -04:00
Dave Methvin
f3ea073dc0 Fix #12329. Remove leftover jQuery.bindReady reference.
jQuery.ready already fires "ready" event properly, the undefined reference had no effect.
2012-08-20 08:02:36 -04:00
Mike Sherov
ad040181dc Fix #12283. Return null for dimension getters on non elements. Fix gh-900. 2012-08-19 22:58:05 -04:00
Mike Sherov
9f86dc922e Fix #12324, line-height "normal" isn't always "1". Close gh-898. 2012-08-19 22:46:06 -04:00
Wesley Walser
2b5b4ebbd7 Fix #12350. Remove BOM in jQuery.trim. Close gh-897. 2012-08-19 22:39:16 -04:00
Corey Frang
0fea007a1a Fix #12273. Don't call easing functions for duration 0 animations. Close gh-895. 2012-08-19 22:09:08 -04:00
Corey Frang
3812f9436d Fix #12278. Promises on non-default queue wait until a dequeue is attempted on an empty queue. Close gh-893. 2012-08-19 21:48:52 -04:00
Oleg Gaidarenko
109d910701 jQuery.contains() handles document objects directly. Close gh-879. 2012-08-19 20:34:03 -04:00
Nikita Govorov
ff7b7cfd1d Fix #12149. Avoid memory leak on oldIE change events. Close gh-878. 2012-08-19 20:24:03 -04:00
jaubourg
9d07525a71 Makes sure "adding" a string to a Callbacks object doesn't cause a stack overflow, just ignore the value like 1.7.x righfully did. Fixes #12233. Unit tests added. 2012-08-16 19:12:59 +02:00
jaubourg
b292c4c2df Calling load with null as the data parameter now properly issues a GET request, not a POST request. Unit tests added. Fixes #12234. 2012-08-16 16:45:18 +02:00
Timmy Willison
aa1350d9e2 Update Sizzle 2012-08-14 14:24:09 -04:00
Elijah Manor
f296335360 Add support check, added assertion to check if cleared, add edge case for backgroundPosition 2012-08-13 07:46:55 -05:00
Rick Waldron
dc3f7d3868 Update comments about window.getComputedStyle in both locations. 2012-08-11 16:30:46 -04:00
Rick Waldron
3722aef8be Use window.getComputedStyle to prevent breaking jsdom/node.js . Fixes #12235 2012-08-10 19:34:01 -04:00
Dave Methvin
060eabc9e8 Finish the license changes, including Sizzle. 2012-08-09 13:44:20 -04:00
Elijah Manor
f952b97997 Updated the comment above the fix 2012-08-08 15:36:20 -05:00
Elijah Manor
d5d8622329 Fix weird clone bug and add a unit test to verify 2012-08-08 15:31:59 -05:00
Dave Methvin
1d8bf0a2b5 Fix #12203. .undelegate() should not remove direcly bound events. 2012-08-07 20:49:34 -04:00
Dave Methvin
37e8b44884 Add back a sacrificial $.attrFn object.
Originally removed in 86b775d036 as part of the enhancement that allows $(html, props) to use any $.fn method.

Although $.attrFn is undocumented it appears to be a poorly kept secret. jQuery Mobile 1.1 is using it and it's the topic of several blog/StackOverflow posts. Leave an empty object here as a dumpster for now, but it's coming out for good in 1.9.
2012-08-07 13:45:47 -04:00
Timmy Willison
5f3c36c7c0 Sizzle: fix chaining pseudo selectors placed after pos selectors. Fixes #12208. 2012-08-07 13:31:07 -04:00
Corey Frang
07e50933c4 Fixes #1034 - Check for style.removeAttribute before calling it
Fixes issue in non IE browsers that happen to come down this path
2012-08-06 11:01:34 -05:00
Timmy Willison
beeab4d126 Quote reserved keyword 'throws' to satisfy yui compressor. Fixes #12158. 2012-07-30 10:44:47 -04:00
Timmy Willison
e07b444dfe Fix a regression where has with multiple contexts was not filtering correctly. Test added. 2012-07-27 18:19:18 -04:00
Timmy Willison
4039d3668d Sizzle: fix a small bug with combinator cache. Fixes #10499. 2012-07-27 17:34:39 -04:00
Timmy Willison
f6f25eff88 Sizzle: adjust pseudos regex. Fixes #12153. 2012-07-27 16:10:45 -04:00
Dave Methvin
14f67a9518 Per @gibson042, don't need .documentElement since Sizzle handles. 2012-07-26 09:30:49 -04:00
Daniel Chatfield
155855b2a9 Fix #12127, fer real. IE9/10 check state on clone. Close gh-875. 2012-07-25 22:23:24 -04:00
Dave Methvin
cc6c014125 Unbreak isHidden args, they're needed by the .filter() call. 2012-07-25 21:44:44 -04:00
Dave Methvin
ed898c62c8 Fix #12148. Let .toggle() call the public .hide() for punching.
There is a slightly shorter way to do this but it's not Closure-friendly.
2012-07-25 21:24:49 -04:00
Oleg
5119b252ac Moves isHidden to src/css.js and re-introduces its use. No ticket. Closes gh-876 2012-07-25 16:24:10 -07:00
Corey Frang
d00048eabe Oops, didn't mean to revert sizzle last time 2012-07-25 15:53:42 -05:00
Corey Frang
f0432d54f6 This should repair the unit 2012-07-25 15:36:21 -05:00
Timmy Willison
0f14c53d72 Remove unnecessary else 2012-07-25 16:09:30 -04:00
Timmy Willison
17a26f5bd9 Fail silently if closest is somehow called on a document. Fixes #10726. 2012-07-25 16:05:59 -04:00
Timmy Willison
2e42f06cdc Sizzle: fixes issue with :empty pseudo and comment nodes 2012-07-25 15:24:05 -04:00
Dave Methvin
de213be372 Revert "Fix #12127. IE9/10 checks fall off the box on clone. Close gh-873."
This reverts commit 569d064fc9.

Causing test fails in Safari, IE6, and IE7.
2012-07-25 14:38:55 -04:00
Timmy Willison
647b772ab9 Update Sizzle: minor consolidation 2012-07-25 11:01:08 -04:00
Timmy Willison
ad5fba759b Update Sizzle: attribute values regex tweak 2012-07-25 10:52:34 -04:00
Dave Methvin
ce15bd7d0c Fix #7579. Don't convert to number if it changes the string. Close gh-852.
Net effect here is that hex numbers and most exponential-format numbers or long sequences of digits will remain strings rather than being coerced to numbers. `The people have spoken.
2012-07-25 10:28:50 -04:00
Mike Sherov
da4d609297 Followup #12018, fix a test fail converting to pixels. Close gh-874. 2012-07-25 09:45:38 -04:00
Daniel Chatfield
569d064fc9 Fix #12127. IE9/10 checks fall off the box on clone. Close gh-873. 2012-07-25 09:32:33 -04:00
Elijah Manor
077987876b Fix #12132. IE10 dislikes detached object elements. Close gh-870. 2012-07-24 14:45:02 -04:00
Timmy Willison
91dfb28dd8 Update Sizzle 2012-07-23 19:39:58 -04:00
Timmy Willison
3adc59efa6 Sizzle: fixes test fails in IE6/7 2012-07-23 15:37:41 -04:00
Timmy Willison
d8aa8e71b0 Sizzle: fix issue with adjusting the context on relative combinators in element-rooted qSA 2012-07-23 14:51:55 -04:00
Timmy Willison
09fc2c50cb Update Sizzle 2012-07-23 12:52:08 -04:00
Richard Gibson
e761e0c6e0 Support event delegation with relative selectors. Fixes #10762. Closes gh-860. 2012-07-23 12:49:45 -04:00
Timmy Willison
a08a18b80a Update Sizzle: Minor edits and fixes #10762. 2012-07-23 12:48:05 -04:00
Richard Gibson
c14a6b385f Clean up regexen; use common regex for numbers. Close gh-862. 2012-07-22 22:23:32 -04:00
Corey Frang
74cc5b0984 Fix #9217. oldIE error when changing detached elements, close gh-861 2012-07-22 22:13:31 -04:00
Mike Sherov
aa3fabce46 Fix #12088, Safari 5 and more percentages in getComputedStyle
In particular, min-width and max-width are taunting the awesome hack. Closes gh-865.
2012-07-22 22:03:27 -04:00
Corey Frang
94924a05de Fix the logic to set overflow:hidden on width & height animations - Fixes #12117 - Closes gh-869 2012-07-20 18:36:55 -05:00
Dave Methvin
f70a696598 Update Sizzle to fix #12082, #12087. 2012-07-17 23:04:03 -04:00
jaubourg
ced5e9037a Extracts the serialization code from the ajax module so that alternative ajax implementations can use it without the need for the whole ajax module to be included in the build. 2012-07-13 09:47:43 +02:00
Dave Methvin
c29660c593 Revert "Fix #11397. Shush Firefox warning by re-breaking #6932 for BB 4.7."
This reverts commit e866893fd2.

Failures in IE6 when this is removed, unfortunately.
2012-07-12 15:28:58 -04:00
Dave Methvin
e866893fd2 Fix #11397. Shush Firefox warning by re-breaking #6932 for BB 4.7.
At this point BlackBerry 4.7 (and related ancient browsers) should be scarce (released circa 2008) so #6932 will be closed wontfix for this edge case.
2012-07-12 15:10:58 -04:00
Dave Methvin
db4d122ff1 Update Sizzle to fix oldIE erroneous getAttribute invokification. 2012-07-12 09:58:59 -04:00
Dave Methvin
f4e5c1729a Fix #11547. toLowerCase not work good on XML attributes.
This was fixed to some extent in gh-724 but there were insufficient test cases. Removing the lowercase completely allows IE 6/7 to work properly since there you need an exact case match for attributes, even in HTML docs. More discussion and test cases in the comments on gh-724.
2012-07-11 23:09:07 -04:00
Dave Methvin
0bde43aeee Update Sizzle; Closes #12054, #12057. 2012-07-11 17:23:15 -04:00
Chris Faulkner
7b5ffcdac8 Fixes a variety of typographical problems. Closes gh-853 2012-07-11 09:46:21 -04:00
Timmy Willison
1f483f354d Adjust jshint options to pass with closure 'sub' changes 2012-07-10 12:12:55 -04:00
Timmy Willison
5bfded1dc6 Sizzle: necessary changes for Advanced Closure compiler support 2012-07-10 12:09:05 -04:00
Uri Gilad
f843a7062f Fix #10517. before() and after() on disconnected node should return multiple nodes. Closes gh-851. 2012-07-10 10:14:43 -04:00
Timmy Willison
b6cb4b420f Sizzle: fix failing test in IE: malformed HTML 2012-07-09 23:48:09 -04:00
Timmy Willison
3384213df9 Update Sizzle: fixes an issue with an escape character in the id of a context 2012-07-09 23:20:36 -04:00
Uri Gilad
21b0db7993 Fix #11962. Standardize getter return values for empty sets. 2012-07-09 23:06:51 -04:00
Timmy Willison
3dbf9a8d5e Update Sizzle: compress/edge case pull from gibson and a fix :not/:has with spaces 2012-07-09 22:08:00 -04:00
Mike Sherov
8f01b92b8f Follow the style guide, lose 72 bytes! Closes gh-840. 2012-07-09 21:39:22 -04:00
Timmy Willison
f30f7732e7 Update Sizzle: fixes author of a previous commit 2012-07-09 11:38:25 -04:00
Timmy Willison
7fae98c55b Update Sizzle: added EXPOSE comment 2012-07-09 11:13:00 -04:00
Timmy Willison
0b06932072 Sizzle added standalone AMD support 2012-07-09 11:05:33 -04:00
David Benjamin
dc83072878 Fix #11249. Inline styles anger Content Security Policy. 2012-07-07 17:28:35 -04:00
Timmy Willison
c8e8d905f8 Sizzle: adds a test for a previously problematic selector 2012-07-07 13:10:10 -04:00
Timmy Willison
c5259bf137 Update Sizzle: adds createPseudo method on Sizzle.selectors for easily creating pseudos with the new compiler 2012-07-07 12:44:05 -04:00
Timmy Willison
115fc4cec2 Update Sizzle: fixes UI tests 2012-07-06 19:14:34 -04:00
Timmy Willison
3f579f342d Sizzle: minor change 2012-07-06 11:16:38 -04:00
Timmy Willison
00d160331a Update Sizzle: improved dir caching 2012-07-06 11:11:54 -04:00
Mike Sherov
f5fd41252e Fix #12018, readyState "interactive" in oldIE lies! Closes gh-848. 2012-07-06 10:12:20 -04:00
Nowres Rafid
aaf134bb70 Fix #8482, offsetParent should not return null. Closes gh-847. 2012-07-06 10:01:32 -04:00
Oleg
05aff40231 Optimization of array operations, closes gh-844. 2012-07-06 09:48:52 -04:00
Richard Gibson
f8baea8f7a DRY out removeData/cleanData, closes gh-838. 2012-07-06 09:22:44 -04:00
Mike Sherov
7532bd7df5 Stop using reserved words as argument names, closes gh-841. 2012-07-06 09:09:40 -04:00
Richard Gibson
1793eab32b Fix #11971: force numeric animation start to be numeric, closes gh-836. 2012-07-05 21:38:17 -04:00
Dave Methvin
86b775d036 Remove more attrFn vestiges from events. 2012-07-05 17:46:08 -04:00
Dave Methvin
cdd5132dcc Fix #12026. Let props in $(html, props) be any jQuery.fn method.
Closes gh-839.
2012-07-05 17:21:58 -04:00
timmywil
1e027610d6 Sizzle: removes qunit and adds .gitignore 2012-07-05 16:41:53 -04:00
timmywil
43f24d50ec Update Sizzle: adjusted POS handling; attribute names should be case-insensitive; dir cache performance tweak 2012-07-05 16:38:35 -04:00
timmywil
3dc77c4bfa Update Sizzle: pseudo-classes should be case-insensitive 2012-07-05 14:52:05 -04:00
timmywil
9a40b1848a Sizzle docs and README updates 2012-07-04 16:55:31 -04:00
Richard Gibson
7f8178033f Update Sizzle: better compression 2012-07-04 12:40:31 -04:00
Dave Methvin
f661b9ea5e Update copyright to jQuery Foundation. 2012-07-03 23:09:44 -04:00
timmywil
cef416116d Update Sizzle: small regex fix 2012-07-03 18:07:00 -04:00
timmywil
9feb945e9d Update Sizzle: removes makeArray and uses native push/slice where available 2012-07-03 16:04:10 -04:00
timmywil
d7372b180c Sizzle: maxCacheLength -> cacheLength 2012-07-03 15:06:36 -04:00
timmywil
b325f7161c Sizzle: detects a buggy getElementsByName. Fixes #10799. 2012-07-03 14:09:01 -04:00
timmywil
461256a711 Update Sizzle: Caching system respects DOM changes between uses of the same selector 2012-07-03 13:54:42 -04:00
timmywil
330eb3bb79 Update Sizzle: exposed compile function for external use. maxCacheLength can be adjusted. 2012-07-03 11:22:47 -04:00
timmywil
d8db54a056 Update Sizzle: fixes a small bug in class matching 2012-07-03 10:31:28 -04:00
timmywil
cdae7479a8 Update Sizzle: adds caching to combinators 2012-07-03 00:16:14 -04:00
timmywil
5c200cf036 Sizzle: space combinator update 2012-07-02 23:01:16 -04:00
timmywil
26f88d3de4 Update sizzle: fixes fail in traversing with :has selector 2012-07-02 22:49:23 -04:00
timmywil
accb3c4932 Sizzle: fix multiple nested pseudos. Fixes #7010. 2012-07-02 22:19:33 -04:00
timmywil
b414fe1b01 Use value rather than nodeValue in attributes (it's the string version). Update sizzle: default attribute handling. 2012-07-02 21:35:00 -04:00
timmywil
6e36cbf90e Sizzle: add cross-browser w3c whitespace rules; pseudo generation adjustment 2012-07-02 17:52:42 -04:00
timmywil
800f47a547 Sizzle: minor adjustments and a small fix in the child selector regex 2012-07-02 15:24:33 -04:00