Dave Methvin
d28ab68699
Make event.currentTarget the delegate node, always.
...
This lets us use currentTarget for its intended use and avoids creating a non-standard delegateTarget property.
2011-10-24 11:18:14 -04:00
Dave Methvin
9fabe2028f
Don't run direct handlers if delegate did .stopPropagation().
2011-10-24 11:18:13 -04:00
Rick Waldron
7347007645
Fixes gross indents.
2011-10-24 09:27:16 -04:00
timmywil
f3a4d261ec
Landing pull request 550. IE6,7,8 cannot use cached fragments from unknown elems. Fixes #10501 .
...
More Details:
- https://github.com/jquery/jquery/pull/550
- http://bugs.jquery.com/ticket/10501
2011-10-23 16:08:10 -04:00
Mathias Bynens
a6bec46170
Landing pull request 554. #10531 : Remove layerX
and layerY
Fixes #10531 .
...
More Details:
- https://github.com/jquery/jquery/pull/554
- http://bugs.jquery.com/ticket/10531
2011-10-22 16:14:47 -04:00
Mike Sherov
e502012c0f
Landing pull request 553. Fallback to elem.style for disconnected nodes in width/height retrieval. Fixes #8388 .
...
More Details:
- https://github.com/jquery/jquery/pull/553
- http://bugs.jquery.com/ticket/10254
- http://bugs.jquery.com/ticket/8388
2011-10-22 16:08:14 -04:00
timmywil
c51b29477e
Support setting both the enctype attribute and property (encoding in IE6/7). Fixes #6743 .
2011-10-22 16:03:57 -04:00
timmywil
f2c1d2e016
Use the property name in elem.removeAttribute in IE6/7 to ensure correct removals. Fixes #10514 .
2011-10-17 16:45:37 -04:00
Dave Methvin
0a3cab8d49
Fix #10489 . Disconnected elements don't bubble to document.
2011-10-13 16:30:40 -04:00
timmywil
8723f3b9e1
Update sizzle; Add sizzle cache collision iframe test. Fixes #8539 .
2011-10-13 11:11:41 -04:00
timmywil
3ad0ba62f0
Do not call getElements on a script tag. Avoids unnecessary execution. Fixes #10176 .
2011-10-12 00:06:54 -04:00
timmywil
a18645c6f8
Leave the opacity test unanchored in case of floating point rounding browser errors; small fix in queue tests. Fixes #5145 .
2011-10-11 22:37:52 -04:00
Corey Frang
6c4ca13d69
Squashed commit of the following:
...
commit af3fd32f207ed080084f10d76f89c07c414baa05
Merge: 83c08ff
fdd60f8
Author: Dave Methvin <dave.methvin@gmail.com>
Date: Tue Oct 11 21:17:56 2011 -0400
Merge branch 'stop' of https://github.com/gnarf37/jquery into pull-541-stop
commit fdd60f8705
Author: Corey Frang <gnarf@gnarf.net>
Date: Mon Oct 10 13:51:59 2011 -0500
.stop( [queue,] clearQueue, gotoEnd )
2011-10-11 21:21:59 -04:00
Dave Methvin
83c08ffa1f
Fix #10478 . Replace jQuery.isNaN with jQuery.isNumeric.
...
Thanks to Christian C. Salvadó for the unit tests!
2011-10-11 21:04:22 -04:00
Dave Methvin
6afc2c074b
Fixes #10477 . Get .off(type, null, fn)
right.
2011-10-11 20:31:45 -04:00
jaubourg
d29182e8d0
Removes isPending and introduces state as a means to retrieve the Deferred/Promise state. Unit tests amended.
2011-10-11 20:23:56 -04:00
Dave Methvin
511c9fe763
Fix focus/blur unit test issues. Reopens #6705 .
...
In the event refactor, I tried to have the focus/blur events trigger the focus/blur plus focusin/focusout events but this doesn't handle various real-world cases that expect a trigger()ed jQuery handler to run and be able to pass data even if the native event shouldn't fire.
This reopens a bug that causes a double-fire of
inline event handlers.
2011-10-10 23:14:08 -04:00
Dave Methvin
307b1a3d77
Fix #10468 . Remove jQuery.event.proxy and jQuery.event.guid.
...
These were deprecated several versions ago and have always been undocumented. Use jQuery.proxy() and jQuery.guid instead.
2011-10-10 21:51:15 -04:00
Julian Aubourg
c51a970604
Merge pull request #535 from gnarf37/queue-true
...
Effects - Allow queue: true - Fixes #10445
2011-10-07 08:52:54 -07:00
timmywil
e828d18caa
Minor fix in events; undeclared var from last commit
2011-10-07 11:45:42 -04:00
Corey Frang
1ba0f9c3ed
Effects - Allow queue: true - Fixes #10445
2011-10-07 10:16:38 -05:00
Dave Methvin
cec0d0d421
Merge pull request #531 from rwldrn/events.js-cleanup
...
Style sweep
2011-10-07 07:14:53 -07:00
timmywil
ce8d9c0ca5
Add a hook for removing contenteditable in IE6/7 and remove the unnecessary jQuery.attrFix. Fixes #10429 .
2011-10-06 17:17:51 -04:00
Rick Waldron
3999d39b84
Additional nits
2011-10-06 16:36:15 -04:00
Rick Waldron
4fd70e7e02
Style sweep
2011-10-06 10:21:23 -04:00
Dave Methvin
e5b16e3356
Rename jQuery.event.propHooks to .fixHooks.
...
We already have jQuery.propHooks for the .prop() method, so using the same name for unrelated functionality on a sub-namespace is crazy talk. Since the method involved is jQuery.event.fix(), this will hopefully tie them together. Oh, and it's shorter.
2011-10-05 21:41:32 -04:00
Rick Waldron
22f2e8b3dc
Landing pull request 530. Fixes coniditional path for tr, td defaultDisplay() calls. Fixes #10416 .
...
More Details:
- https://github.com/jquery/jquery/pull/530
- http://bugs.jquery.com/ticket/10416
2011-10-04 15:53:19 -04:00
jaubourg
749d32a290
isProgressing becomes isPending. Unit tests added.
2011-10-04 12:08:46 -04:00
Shi Chuan
23f7c883c9
updated Juriy Zaytsev's detecting event support technique link in support.js
2011-10-04 23:09:12 +08:00
timmywil
1ebced1736
Add support for calling outer/inner Width/Height on the window and document. Fixes #9434 .
2011-09-30 17:50:48 -04:00
Dave Methvin
96a44a86d8
Fix #10375 . Don't put type
in jQuery.event.props
...
It's already set in jQuery.Event, and copying it can clobber values set by the caller, e.g., the UI widget factory.
2011-09-29 10:34:55 -04:00
timmywil
22fcc7744d
Update Sizzle. Fixes #3144 , #6863 .
2011-09-28 16:47:45 -04:00
Dave Methvin
9c4aaeb0a8
Expose jQuery.event.simulate for use by special event handlers.
2011-09-28 12:05:12 -04:00
Corey Frang
8dda57f82f
Landing pull request 520. Unset the complete function just before calling it to avoid an exception creating a loop. Fixes #5684 .
...
More Details:
- https://github.com/jquery/jquery/pull/520
- http://bugs.jquery.com/ticket/5684
2011-09-28 12:00:21 -04:00
Corey Frang
a3b59d7f92
Landing pull request 514. 1.7 - queue refactoring to handle delay stop - Fixes #6150 .
...
More Details:
- https://github.com/jquery/jquery/pull/514
- http://bugs.jquery.com/ticket/6150
2011-09-28 11:55:29 -04:00
timmywil
a74cbb2b91
Move createSafeFragment to the top to satisfy lint
2011-09-28 11:39:05 -04:00
timmywil
3661835101
Fixes IE7 test suite. Keep the testElement attached and set necessary styles on it to fix the offset with margin test.
2011-09-28 11:30:38 -04:00
timmywil
649823de18
Fixes a fail in unit/traversing. Use an iframe's document for creating the html5 fragment when necessary.
2011-09-28 10:06:29 -04:00
Dave Methvin
c7838c3607
Minor cleanups to code. Futile effort to get IE to pass the unit test.
2011-09-25 22:04:52 -04:00
Dave Methvin
b4120a7430
propHooks now an object with props
array and filter
function.
...
Use the originalEvent to grab properties in filter functions since they often won't have been copied to event. Mark a few current props in the main jQuery.event.props list as deprecated, they aren't supported across all browsers.
2011-09-25 19:56:34 -04:00
Dave Methvin
ae27424b30
Merge branch '8789-fun-with-fix' of https://github.com/rwldrn/jquery into fix-8789-rwldrn-fix
...
Conflicts:
src/event.js
test/unit/event.js
2011-09-24 22:37:16 -04:00
Rick Waldron
87e1c62d8e
Moves mouse properties to mouseProps
2011-09-23 15:45:19 -04:00
Dave Methvin
d920ac68fd
Simplify the .closest(Array)
code since we no longer use it internally.
...
It was previously used in liveHandler for delegated events, but is now baked in to events.js. The signature is a strange one since it returns an array of matches, *not* a chainable jQuery object. I've marked it as deprecated.
The code is simplified by two things: 1) We don't care about optimizing the duplicate selectors case, and 2) `.is()` now handles positional selectors by looking for set membership, which eliminates the workaround that was being applied here. See 70e2e32e0e
for that commit.
2011-09-23 09:11:02 -04:00
Rick Waldron
c80ad2524e
current state
2011-09-22 20:02:34 -04:00
Rick Waldron
c7f3b6109e
Removes early return loop, must copy properties
2011-09-22 19:05:06 -04:00
Rick Waldron
14cb04dc94
Shortcircuit fix if possible
2011-09-22 11:30:03 -04:00
Rick Waldron
dc878ae33b
More ref localization
2011-09-22 11:22:56 -04:00
Rick Waldron
7dab8981f8
Remove unnec. empty line
2011-09-22 11:14:45 -04:00
Rick Waldron
737820118b
More reference caching
2011-09-22 11:12:42 -04:00
Rick Waldron
7babc7f203
Cache reference to propHook lookup and result
2011-09-22 11:07:16 -04:00
Rick Waldron
66202aeae5
Restore this.propHooks => jQuery.event.propHooks for better gzip compression. Thanks gnarf
2011-09-22 10:59:29 -04:00
Rick Waldron
2c903b805c
Adds notes re: crash status of fix conditions
2011-09-22 10:52:29 -04:00
Rick Waldron
313bee9de4
Moves key event fixes to own even prop hook defs
2011-09-22 10:43:32 -04:00
Rick Waldron
9ef0394fbd
jQuery.event.propHooks => this.propHooks where possible
2011-09-22 10:35:18 -04:00
Dave Methvin
d638aa9c6d
Allow more cases to use innerHTML
in the .html
method.
...
Thanks @cmcnulty for the pull and the patience!
2011-09-21 23:05:26 -04:00
Dave Methvin
a4cdbf09ee
Fix #7061 . Lazy-attach to the genuine submit event for delegation.
...
Avoids the problems that arise when we try to trigger submit behavior at clicky-time.
2011-09-21 21:15:00 -04:00
jaubourg
a588336a6d
Trimmed down $.Callbacks and $.Deferred.
2011-09-21 17:00:55 +02:00
Dave Methvin
03d95530b5
Remove the rarely-used pseudos from quickis.html
...
The cutting will continue until file size is improved.
2011-09-21 09:40:57 -04:00
Dave Methvin
61511d5ab3
Allow IE .trigger()ed events through on a check/radio.
2011-09-20 23:01:07 -04:00
Dave Methvin
b85f222df5
Don't fire change on an already-selected radio.
...
Thanks to Brandon Wallace (@bman654) for his code review. Also tweaks delegatetest.html output.
2011-09-20 22:18:34 -04:00
Dave Methvin
3bd7bed340
Fix #6593 . Don't let onchange trigger twice for elements in IE.
...
This is a major revamp of the approach we use for IE change events. Instead of trying to track and simulate, we lazy-attach real change events to inputs and have only one workaround for check/radio. Somewhat more resource intensive but closes several sticky bugs. The onchange is still triggered for check/radio on blur but no double-trigger on any element occurs.
2011-09-20 20:44:36 -04:00
Rick Waldron
0aaa1fae83
Removes pageX pageY from prop list
2011-09-20 14:54:33 -04:00
Rick Waldron
3d39b7d527
Updates rmouseEvent
2011-09-20 13:14:59 -04:00
Rick Waldron
9fbed020a1
Implements jQuery.event.propHooks. Fixes #8789
2011-09-20 12:54:34 -04:00
Mathias Bynens
26898f0bc5
Landing pull request 509. Add a comment explaining the use of document.getElementsByTagName('body')[0] instead of document.body.
...
More Details:
- https://github.com/jquery/jquery/pull/509
2011-09-20 11:23:01 -04:00
Dave Methvin
70e2e32e0e
Landing pull request 491. Fix #7322 . Make .is()
with a positional selector work like delegated event logic. Fixes #7322 .
...
More Details:
- https://github.com/jquery/jquery/pull/491
- http://bugs.jquery.com/ticket/7322
2011-09-19 23:50:52 -04:00
timmywil
f8b79e38c4
semicolon for jshint happiness
2011-09-19 23:25:02 -04:00
timmywil
11c9de477c
Added filtering tests and updating sizzle to fix filtering with positional selectors. Fixes #10315 .
2011-09-19 23:09:40 -04:00
Corey Frang
9b3768b968
Landing pull request 512. 1.7 - removeData now takes space separated lists and arrays of keys - Fixes #7323 .
...
More Details:
- https://github.com/jquery/jquery/pull/512
- http://bugs.jquery.com/ticket/7323
2011-09-19 21:16:20 -04:00
Rick Waldron
ca4133cc3f
Landing pull request 492. 1.7 Remove multiple attributes (Symmetry with removeClass) Combines patches submitted by leeoniya, zertosh and my own tests. Fixes #5479 .
...
More Details:
- https://github.com/jquery/jquery/pull/492
- http://bugs.jquery.com/ticket/5479
2011-09-19 21:07:07 -04:00
Rick Waldron
f60213648c
Landing pull request 477. 1.7 jQuery.offset.supportsFixedPosition. Fixes #6809 .
...
More Details:
- https://github.com/jquery/jquery/pull/477
- http://bugs.jquery.com/ticket/6809
2011-09-19 21:03:41 -04:00
Rick Waldron
9ecdb2472b
Landing pull request 490. 1.7 HTML5 Support for innerHTML, clone & style. Fixes #6485 .
...
More Details:
- https://github.com/jquery/jquery/pull/490
- http://bugs.jquery.com/ticket/6485
2011-09-19 16:42:36 -04:00
jrburke
bba3d610c7
Landing pull request 331. Add support for registering jQuery as an AMD module. Fixes #7102 .
...
More Details:
- https://github.com/jquery/jquery/pull/331
- http://bugs.jquery.com/ticket/7102
2011-09-19 16:37:22 -04:00
Corey Frang
2831cfd072
Landing pull request 503. 1.7 data: set a flag in the private data cache to avoid having to scan attributes multiple times - Fixes #8909 .
...
More Details:
- https://github.com/jquery/jquery/pull/503
- http://bugs.jquery.com/ticket/8909
2011-09-19 16:13:57 -04:00
Corey Frang
d5f144a7bb
Landing pull request 500. 1.7 - "public data" stored as a key on "internal data" - Fixes #8921 .
...
More Details:
- https://github.com/jquery/jquery/pull/500
- http://bugs.jquery.com/ticket/8921
2011-09-19 16:13:14 -04:00
Corey Frang
e4c48a34b4
Landing pull request 496. 1.7 animate: allow named queues to be used by animate. Fixes #9280 .
...
More Details:
- https://github.com/jquery/jquery/pull/496
- http://bugs.jquery.com/ticket/9280
2011-09-19 16:08:00 -04:00
Rick Waldron
af1dc64bee
Landing pull request 510. Add notes about #9699 fix.
...
More Details:
- https://github.com/jquery/jquery/pull/510
- http://bugs.jquery.com/ticket/9699
2011-09-19 15:54:07 -04:00
timmywil
e7a7cc8914
Update sizzle
2011-09-19 15:42:32 -04:00
timmywil
29c52b0f6c
Add sparse array performance improvement for inArray. Thanks rwaldron, rkatic, and jdalton
2011-09-19 15:42:32 -04:00
timmywil
76a84fba94
Call .is(:visible) on the window or document does not thrown an error in IE. Fixes #10267 .
2011-09-19 15:42:32 -04:00
timmywil
daeb665045
Check for property support in the boolHook before falling back to attribute node. Fixes #10278 .
2011-09-19 15:42:32 -04:00
timmywil
b7ebbb9142
Fix inArray for positive start indices
2011-09-19 15:42:32 -04:00
Dave Methvin
6ece8f138f
Revert "Fix #6593 . Don't trigger change
event twice when simulating it on IE." Add inline handler monitor to delegatetest.html so we can see it fail.
...
This reverts commit e77686495b6e34938575c9c0fe978cb4a0be6f05.
2011-09-19 15:42:32 -04:00
Dave Methvin
6c618ddb0d
Eliminate global variable "l" (!)
2011-09-19 15:42:32 -04:00
Dave Methvin
06e56acb0d
Narrow the invisible-element embargo to focus/blur events.
2011-09-19 15:42:32 -04:00
Dave Methvin
4030de9519
Update "Fix #6593 . Don't trigger change
event twice when simulating it on IE."
...
This reverts commit 3d0de29d5615c1b1d74c72e6272484961a4ba243.
2011-09-19 15:42:32 -04:00
Dave Methvin
8c91da57b9
Fix #9593 . Create a new jQuery.Event rather than a plain object when simulate()ing events. Fix a related issue with not passing src to jQuery.Event constructor.
2011-09-19 15:42:32 -04:00
Dave Methvin
619a89d5ff
Fix #6593 . Don't trigger change
event twice when simulating it on IE.
2011-09-19 15:42:31 -04:00
Dave Methvin
6872d31f5a
Fix #6170 . Don't try to run DOM methods on window
.
2011-09-19 15:42:31 -04:00
Dave Methvin
38601e07da
Remove the relatedTarget adjustment for mouseenter/leave events, it's an ambiguous case anyway and it is expensive to do.
2011-09-19 15:42:31 -04:00
Dave Methvin
2886249e84
Cosmetic and style cleanups.
2011-09-19 15:42:31 -04:00
Dave Methvin
0ec71ac707
Fix the special event handler for mouseover/out events.
...
And use the /dist version of jquery.js, willya?
2011-09-19 15:42:31 -04:00
Dave Methvin
9aa553aa18
Rework #1486 patch to avoid try/catch
and look for hidden elements by .offsetWidth
. Unit test currently disabled due to Chrome bug.
2011-09-19 15:42:31 -04:00
Dave Methvin
ecd10464e8
Fix #9951 . Precompute path for .trigger()
to match up with W3C spec.
2011-09-19 15:42:31 -04:00
Dave Methvin
0ccb88d48d
Fix some messy rebasing issues.
2011-09-19 15:42:31 -04:00
Dave Methvin
005958b731
Fixes for IE8. Avoid killer recursion in special events during removal. Use q instead of quote in unit tests.
2011-09-19 15:42:31 -04:00
Dave Methvin
9038aa9586
The unload event no longer needs the IE6SP2 fix, see http://bugs.jquery.com/ticket/8982
2011-09-19 15:42:31 -04:00
Dave Methvin
68d07bf648
Clean up the delegate matching logic.
2011-09-19 15:42:31 -04:00
Dave Methvin
66e9a6f773
Make a blur
event bubble properly when mutated into a focusout
event.
2011-09-19 15:42:31 -04:00
Dave Methvin
8a6bbc70d0
Remove redundancy in the IE special submit handler.
2011-09-19 15:42:31 -04:00
Dave Methvin
bd55f905a0
Fix simulate() arg order.
2011-09-19 15:42:31 -04:00
Dave Methvin
bb1081ee44
Clean up the quick selector expression parsing code.
2011-09-19 15:42:31 -04:00
Dave Methvin
990c094f1c
special.handle now must call the handleObj.handler if it wants that to happen. Also re-use the simulate() function for bubbling focusin.
2011-09-19 15:42:31 -04:00
Dave Methvin
6a670df9e9
Rework the special events interface to add handle and trigger hooks. Modify IE change/submit special events to take advantage of them. Rewrite mouseover/enter code as special events rather than inline code. In the event unit test, set a tabindex on the div element and focus it first to justify a legitimate blur event.
2011-09-19 15:42:31 -04:00
Dave Methvin
df6e0d508e
Rewrite IE special change/submit to make it faster/shorter. Fixes #6319 .
2011-09-19 15:42:31 -04:00
Dave Methvin
0dc7b16e94
Fixes #8858 . Pass the .trigger(..., data) to the event.special._default method.
2011-09-19 15:42:31 -04:00
Dave Methvin
d74c6bd0f4
Add unit tests for quickIs cases and fix the regexp as a result.
2011-09-19 15:42:31 -04:00
Dave Methvin
03f99ff995
Pre-compute delegated event path and handlers to comply with http://www.w3.org/TR/DOM-Level-3-Events/#event-flow
2011-09-19 15:42:30 -04:00
Dave Methvin
5d6a1424aa
jQuery 1.7 event work:
...
Add .on() and .off() methods.
Write existing methods in terms of on/off.
Rewrite delegated handling to remove "live" event.
Fix existing code for jQuery style guide.
Fix existing bug in unit tests calling .undelegate()
2011-09-19 15:42:30 -04:00
timmywil
2e0c9bfd36
Allow second argument to be passed to array.indexOf. Fixes #9453 .
2011-09-19 15:42:30 -04:00
timmywil
25205d3f90
Removing topic.js as it will be a plugin
2011-09-19 15:42:30 -04:00
jaubourg
4092e3d275
$.Callbacks, $.Topic and notify/progress on $.Deferred.
2011-09-19 15:42:30 -04:00
timmywil
1878885fb7
Animation state is tracked on toggled/stopped animations using the private data cache. Fixes #8685 . See full commit message for more. Fixes #6641 .
...
- Example: http://jsfiddle.net/timmywil/gqZL5/24/
- http://bugs.jquery.com/ticket/8685
- Check the completed timer has not been removed already so other timers do not get accidentally removed. Fixes #6641 .
- Style edits, code reductions, and optimizations for the effects module
2011-09-19 15:42:30 -04:00
timmywil
92405d4f5f
Override Sizzle attribute retrieval with jQuery.attr. Fixes #5637 , #7128 , #9261 , #9570 , #10178 .
...
Bug fixed on the side: $(window).is('a') was throwing an exception. Fixes #10178 .
2011-09-19 15:42:30 -04:00
Rick Waldron
bc65f930b5
Fixes typo
2011-09-19 09:41:55 -04:00
Rick Waldron
6174612daa
Add notes about #9699 fix
2011-09-18 20:15:35 -04:00
Rick Waldron
7856230f67
Removes whitespace junk
2011-09-18 20:15:18 -04:00
Dave Methvin
81c778b2ca
Fix #10208 . Check for button
as well as input
when performing the #7071 VML crash workaround for IE special-events submit code.
2011-09-07 11:30:22 -04:00
rwldrn
8e8fa6dc1a
Bug in rmultidash. Fixes #10194
2011-09-07 10:13:22 -04:00
rwldrn
4bc691a1c3
Reverts broken support string. Fixes #10197
2011-09-07 10:08:04 -04:00
Rick Waldron
a42273807d
Landing pull request 478. Apply fixes as noted by Diego Perini, David Murdoch & Mathias Bynens. Supplements #9634 Fixes #9634 .
...
More Details:
- https://github.com/jquery/jquery/pull/478
- http://bugs.jquery.com/ticket/9634
2011-09-01 11:16:38 -04:00
rwldrn
3589a53de9
Landing pull request 476. Fix lint complaints about unescaped -. Follow up to #10021 Fixes #10021 .
...
More Details:
- https://github.com/jquery/jquery/pull/476
- http://bugs.jquery.com/ticket/10021
2011-08-26 10:44:50 -04:00
timmywil
2a045f8269
Revert "Begrudgingly adds chrome detection to jQuery.browser (1.7). Fixes #9385 "
...
This reverts commit dd93d0eb32
.
2011-08-26 10:10:35 -04:00
timmywil
d723942b27
Revert back to always setting the attribute to empty string before removal. Fixes #9699 .
2011-08-25 15:33:54 -04:00
Dave Methvin
e57057739b
Merge pull request #445 from rwldrn/9897
...
Fixes #9897 . Wrap obj.constructor test in try/catch to avoid problems with host objects. Thanks to bkrausz.
2011-08-25 12:25:58 -07:00
Dave Methvin
3ba72f991d
Merge pull request #464 from dmethvin/fix-10021-relative-negative-values
...
Fixes #10021 . Allow negative relative values for `.css()`
2011-08-25 12:23:37 -07:00
Dave Methvin
a839af034d
Merge pull request #465 from anton-ryzhov/master
...
Fixes #10076 . $.inArray crashes IE6 and Chrome if second argument is `null` or `undefined` (Thanks anton-ryzhov!)
2011-08-25 12:22:47 -07:00
Dave Methvin
f4811bfb04
Merge pull request #468 from rwldrn/10080
...
Fixes #10080 . Test cache for window inference.
2011-08-25 12:18:40 -07:00
Dave Methvin
979dd1cb42
Merge pull request #473 from dmethvin/fix-10098-faux-comment
...
Fixes #10098 . Avoid a slashy-starry char sequence to prevent T-Mobile (and other brain-damaged) script compression breaking jQuery.
2011-08-25 12:17:50 -07:00
Dave Methvin
8cabdcd122
Use jdalton's shorter sequence for the chars.
2011-08-23 08:55:41 -04:00
Dave Methvin
9b174520cc
Use a semantic name for the variable.
2011-08-23 08:47:34 -04:00
Dave Methvin
749dbad981
Prioritize #id over <tag> to avoid XSS via location.hash ( #9521 )
2011-08-23 08:25:11 -04:00
Dave Methvin
771e637a51
Fixes #10098 . Avoid a slashy-starry char sequence in literal strings to evade faulty script compressors.
2011-08-22 22:32:06 -04:00
timmywil
84f29084d6
Revert "Landing pull request 461. Adds a due diligence check for pre-defined data-* attrs during removal. Fixes #10026."
...
This reverts commit 6805fc2cd2
.
A more cache-friendly solution is in the works.
2011-08-22 15:02:46 -04:00
Rick Waldron
6805fc2cd2
Landing pull request 461. Adds a due diligence check for pre-defined data-* attrs during removal. Fixes #10026 .
...
More Details:
- https://github.com/jquery/jquery/pull/461
- http://bugs.jquery.com/ticket/10026
2011-08-22 13:49:18 -04:00
rwldrn
93beee8ac0
Test for window inference. Fixes #10080
2011-08-18 10:17:12 -04:00
Rick Waldron
f44d5e1e81
Ensure cache[id] exists before attempting to delete it. Fixes #10080
2011-08-17 17:49:09 -04:00
dmethvin
1a738cb72f
Landing pull request 463. Fixes #9572 . Don't camelize the -ms-
prefix because Microsoft didn't. A Fixes #9572 .
...
More Details:
- https://github.com/jquery/jquery/pull/463
- http://bugs.jquery.com/ticket/9572
2011-08-17 17:34:09 -04:00
Rick Waldron
130a29e786
Landing pull request 459. Do not allow assumed cache[id] in jQuery.data. Fixes #8235 .
...
More Details:
- https://github.com/jquery/jquery/pull/459
- http://bugs.jquery.com/ticket/8235
2011-08-17 17:18:58 -04:00
timmywil
624ee36646
Update sizzle and QUnit
2011-08-17 17:05:16 -04:00
Anton Ryzhov
190136cf61
Unit test for this case
...
Codestyle fixes
2011-08-17 18:56:21 +04:00
Anton Ryzhov
9c18eb2c15
$.inArray doesn't crush IE6 and Chrome if second argument is null
or undefined
2011-08-17 15:30:12 +04:00
Dave Methvin
5d954c1b23
Check for null before isNaN().
2011-08-16 19:30:20 -04:00
Dave Methvin
727d51ec9d
Save a few bytes, thanks @danheberden!
2011-08-16 19:25:32 -04:00
Dave Methvin
015328787c
Fixes #10021 . Allow negative relative values for .css()
(e.g., "+=-20px"
) since .animate()
already allows it. Useful for when the relative value is a variable.
2011-08-16 18:00:44 -04:00
timmywil
2053d1c621
Remove requestAnimationFrame support. Fixes #9381 .
2011-08-16 11:21:53 -04:00
Dave Methvin
b22c904652
Merge pull request #456 from rwldrn/9318
...
Improves support for arbitrary numbers in data keys. Fixes #9318
2011-08-05 07:45:05 -07:00
Rick Waldron
e7af6a296b
Improves support for arbitrary numbers in data keys. Fixes #9318
2011-08-05 10:17:24 -04:00
Rick Waldron
2ce5e95951
Supports interoperable removal of hyphenated/camelCase properties. Fixes #9413
2011-08-05 09:43:58 -04:00
timmywil
5c4a9cc001
Add back the background: none setting to avoid any possible crashes in IE from the support testElement. Fixes #9823 .
2011-08-04 18:41:34 -04:00
timmywil
700c16b085
Remove unnecessary regex
2011-08-04 18:16:15 -04:00
timmywil
8c2cb49917
Now using getAttributeNode in all attribute cases in IE6/7, which normalizes attribute behaviors across browsers, is less hacky, and shortens the attribute code. Fixes #9980 .
2011-08-04 18:16:15 -04:00
timmywil
fd4ee2a397
Make the tabIndex hook first a propHook and add it to attrHooks for back-compat reasons. Fixes #9979 .
2011-08-04 18:16:15 -04:00
Dave Methvin
3cfb134ab4
Merge pull request #367 from gnarf37/index-optimize
...
Quick improvement to the performance of .index() with no arguments
2011-08-04 15:11:42 -07:00
Dave Methvin
8d5c874227
Merge pull request #416 from gnarf37/ticket_6652
...
CSS: Remove filter from style when setting opacity to 1 - Fixes #6652 - R
2011-08-04 15:09:31 -07:00
Dave Methvin
b5a16ead1a
Merge pull request #412 from rwldrn/9587
...
jQuery.clone() check destination child nodes are not null. Fixes #9587
2011-08-04 14:57:51 -07:00
Dave Methvin
59936dc04d
Merge pull request #432 from rwldrn/9794
...
Correct non-null|undefined evaluation of data property values. Fixes #9779
2011-08-04 14:55:21 -07:00
Dave Methvin
2e298d92db
Merge pull request #431 from DenisKnauf/master
...
input type=datetime-local (ajax doesn't support it, yet)
2011-08-04 14:51:43 -07:00
Dave Methvin
84936f1e64
Merge pull request #434 from Bubbi/bug_7071
...
ticket #7071 - Accessing the 'type' property on VML elements fails on IE during submit special handler
2011-08-04 14:41:11 -07:00
Dave Methvin
1846551a0c
Merge pull request #451 from scottjehl/master
...
Check body existence before referencing its properties (fixes Nokia error)
2011-08-04 14:35:29 -07:00
Dave Methvin
6a3395afcd
Merge pull request #419 from rwldrn/9630
...
Unit tests assert that .contents().hasClass() works as expected. Fixes #9630
2011-08-04 14:33:52 -07:00
Dave Methvin
5417a2cf6b
Merge pull request #417 from rwldrn/9385
...
Begrudgingly adds chrome detection to jQuery.browser (1.7). Fixes #9385
2011-08-04 14:31:56 -07:00
scottjehl
c8cc1b35e4
Make sure body is defined before attempting to use its properties. This check prevents an error from occurring when the width() or height() methods are called before the body is defined in browsers that return false on the first condition and proceed on to the second. For example, simply calling $( window ).width() from a script in the HEAD will throw an error in Nokia webkit browsers without this check in place.
2011-08-02 18:38:35 -04:00
Rick Waldron
ad16db370e
Wrap obj.constructor test in try/catch. Thanks to bkrausz. Fixes #9897
2011-07-25 17:06:38 -04:00
Rick Waldron
8fed1e7b5e
Do plain property check first, fallback to camelCase only if nec. Fixes #9794
2011-07-25 14:17:59 -04:00
Rick Waldron
ddf925b770
Non-breaking-space should achieve the same effect as a visible character. Fixes #9634
2011-07-25 14:02:37 -04:00
jaubourg
27291ff06d
Fixes #9255 : xml parsing error in $.parseXML is now properly detected for all browsers. Unit test added.
2011-07-23 03:26:36 +02:00
jaubourg
0ed99097bd
Fixes #9854 : propagates native statusText onto jqXHR.statusText. statusText in callbacks is still normalized. Unit test added.
2011-07-23 02:39:12 +02:00
jaubourg
1d220cdd55
Makes sure that status -1 (used when an internal error occured) will not tag jqXHR.readyState as complete (4).
2011-07-23 02:17:46 +02:00
jaubourg
e6a99fdb0e
Fixes #9887 : ajax now supports circular references into objects passed as context. Prefilter and transport developpers should add their own custom option into flatOptions when needed. Unit test added.
2011-07-23 02:10:17 +02:00
Steen Nielsen
2d275dfd05
Make sure that Internet Explorer 6-8 won't give a "failed" error, when a request for type is made on vml objects
2011-07-15 22:21:44 +02:00
Corey Frang
d1c4f0e0d1
Trying .removeAttribute instead of the regexp to remove the filter attribute
2011-07-13 22:47:34 -05:00
Rick Waldron
84d066ff7c
Correct non-null|undefined evaluation of data property values. Fixes #9794
2011-07-10 21:45:50 -04:00
timmywil
1886d74434
Check the attribute node value for false for HTML5 booleans when not supported. Fixes #9504 .
2011-07-09 14:52:16 -04:00
Denis Knauf
bb7d98f018
input type=datetime-local support for ajax.
2011-07-07 12:13:10 +02:00
jaubourg
e6f8951983
Fixes #9632 . Adds res:// protocol to the list of local protocols.
2011-07-01 02:18:05 +02:00
jaubourg
e83fcdcb02
Fixes #9682 . Removes data from the options for request with no content so that it is not used again in case of a retry. Unit test added.
2011-07-01 02:11:26 +02:00
jaubourg
139135a98a
Fixes #9446 . Context is properly propagated using pipe. If context was the original deferred, then context is updated to next deferred in the chain. Unit tests added.
2011-07-01 01:51:50 +02:00
jaubourg
5b92a5f5ec
Replaces typo (status instead of state) as observed in #9585 .
2011-07-01 00:16:34 +02:00
timmywil
ab1504f14f
Set timerId to true instead of a number so that intervals set to 1 are not accidentally cleared when stopped. Fixes #9678 .
...
- Adding a working test case would not be possible in this case, but all tests pass.
2011-06-28 11:46:03 -04:00
rwldrn
bb1702518e
Filter hasClass by nodeType 1; Fixes #9630
2011-06-22 08:50:44 -04:00
gnarf
15cd7d83a9
CSS: Remove filter from style when setting opacity to 1 - Fixes #6652 - REMOVE FILTER:ALPHA(OPACITY=100) AFTER ANIMATION
2011-06-20 14:21:44 -05:00
rwldrn
dd93d0eb32
Begrudgingly adds chrome detection to jQuery.browser (1.7). Fixes #9385
2011-06-20 09:57:26 -04:00
timmywil
96501d38a9
Allow similarly named classes (regression from 9499) and switch class retrieval to property when passing class to value functions. Fixes #9617 .
2011-06-19 18:58:47 -04:00
Mike Sherov
124817e668
Landing pull request 413. Move border/padding checks to after width validation to avoid unnecessary fallbacks. Fixes #9598 .
...
More Details:
- https://github.com/jquery/jquery/pull/413
- http://bugs.jquery.com/ticket/9300
- http://bugs.jquery.com/ticket/9441
- http://bugs.jquery.com/ticket/9598
2011-06-17 17:33:29 -04:00
rwldrn
5c3b9e0c24
jQuery.clone() check that destination child nodes are not null. Fixes #9587
2011-06-15 11:14:52 -04:00
gnarf
9a96af1d59
Quick improvement to the performace of .index() with no arguments - Adding a unit test for .index() of a node without a parent returns -1
2011-06-14 23:38:36 -05:00
Schalk Neethling
8a532d1575
Landing pull request 378. Comment typo in core.js.
...
More Details:
- https://github.com/jquery/jquery/pull/378
2011-06-14 16:01:50 -04:00
rwldrn
5eef5917fd
Landing pull request 409. Adds fillOpacity to internal cssNumber. Fixes #9548 .
...
More Details:
- https://github.com/jquery/jquery/pull/409
- http://bugs.jquery.com/ticket/9548
2011-06-14 15:59:22 -04:00
Greg Hazel
13ceb0f56b
Landing pull request 410. Moves jQuery attachment comment to outro.
...
More Details:
- https://github.com/jquery/jquery/pull/410
2011-06-14 15:51:03 -04:00
rwldrn
6926247bf4
Landing pull request 397. withinElement rewrite in event. Fixes #6234 , #9357 , #9447 .
...
More Details:
- https://github.com/jquery/jquery/pull/397
- http://bugs.jquery.com/ticket/6234
- http://bugs.jquery.com/ticket/9357
- http://bugs.jquery.com/ticket/9447
2011-06-14 15:38:46 -04:00
timmywil
641ad80211
Attribute hooks do not need to be attached in XML docs. Fixes #9568 .
2011-06-13 10:02:13 -04:00
timmywil
39a2f29c29
Revert "Add catch block to try/finally in deferred. Fixes #9033 . Test case needed." Line of exception was lost when debugging.
...
This reverts commit 0a80be67f4
.
2011-06-08 10:55:52 -04:00
timmywil
db437be6e3
Check classes passed for duplicates. Fixes #9499 .
2011-06-07 21:00:44 -04:00
timmywil
0a80be67f4
Add catch block to try/finally in deferred. Fixes #9033 . Test case needed.
2011-06-07 20:55:17 -04:00
timmywil
d66c3b6d84
Remove fellback in width/height cssHook
2011-06-07 00:04:17 -04:00
rwldrn
6490c10c75
Landing pull request 401. Nulling all elements created in support.js; Fixes #9471 .
...
More Details:
- https://github.com/jquery/jquery/pull/401
- http://bugs.jquery.com/ticket/9471
2011-06-06 23:54:17 -04:00
timmywil
75203de743
Optimize width/height retrieval (moved logic to getWH, removed adjustWH). Supplements #9441 , #9300 .
2011-06-06 23:35:16 -04:00
Mike Sherov
80ad14bd14
Add margin after checking width. Add tests. Fixes #9441 . Fixes #9300 .
2011-06-06 23:13:37 -04:00
rwldrn
0742056645
Landing pull request 403. Check for both camelized and hyphenated data property names; Fixes #9301 .
...
More Details:
- https://github.com/jquery/jquery/pull/403
- http://bugs.jquery.com/ticket/9301
2011-06-06 20:18:36 -04:00
rwldrn
c3c001cf5b
Landing pull request 404. Removes unused hasOwn var declaration. Fixes #9510 .
...
More Details:
- https://github.com/jquery/jquery/pull/404
- http://bugs.jquery.com/ticket/9510
2011-06-06 20:16:14 -04:00
timmywil
1d202c6afc
Move the value attrHook to the main attrHooks object to save bytes
2011-05-26 16:51:41 -04:00
timmywil
bdce86dc2e
Move window/document test to dimensions for consistency
2011-05-25 19:59:29 -04:00
timmywil
edb2286544
Return null for outer/inner width/height calls on window/document. Fixes #7557 .
2011-05-25 19:49:50 -04:00
timmywil
1d1cb582c0
elem.getElementsByTagName calls the function in IE6/7. Fixes #9370 .
2011-05-25 19:35:52 -04:00
Scott Hughes
287156197f
Landing pull request 389. Null elements in clone to avoid memory leak in IE. Fixes #9341 .
...
More Details:
- https://github.com/jquery/jquery/pull/389
- http://bugs.jquery.com/ticket/9341
2011-05-25 15:18:13 -04:00
rwldrn
408c98fb4b
Landing pull request 383. Relocating jQuery.camelCase to core; Fixes #9368 .
...
More Details:
- https://github.com/jquery/jquery/pull/383
- http://bugs.jquery.com/ticket/9368
2011-05-25 15:10:49 -04:00
timmywil
b8fc9d14a1
detachEvent is unnecessary since we're nulling div. Fixes #8873 .
2011-05-25 15:08:37 -04:00
timmywil
657b197c19
Null created elements in support to avoid leaks in IE. Tested IE6-8. Leaks are contained to the byte. Fixes #9294 .
2011-05-25 14:30:46 -04:00
timmywil
e5457a5a1f
Remove unnecessary background setting in support now that we have the div reversion. Test added.
2011-05-25 13:58:05 -04:00
Mathias Bynens
b43910a496
Landing pull request 352. Slightly improved defaultDisplay() and Throbber of Doom. Fixes #8994 .
...
More Details:
- https://github.com/jquery/jquery/pull/352
- http://bugs.jquery.com/ticket/8994
2011-05-20 11:22:52 -04:00
rwldrn
f82b9dddc4
Landing pull request 382. Adds support for number values (meter,progress); Fixes #9319 .
...
More Details:
- https://github.com/jquery/jquery/pull/382
- http://bugs.jquery.com/ticket/9319
2011-05-20 11:03:33 -04:00
timmywil
a1545b5079
Unnecessary var removed.
2011-05-18 11:59:21 -04:00
timmywil
25118e22a2
Handle unset value attributes consistently depending on property existence. Supplements #9328 .
2011-05-18 11:46:22 -04:00
timmywil
ba90af0dc5
Make the value hook less obtrusive for elements which do not inherently have a value property. Fixes #9328 .
2011-05-18 11:29:25 -04:00
timmywil
7d3ba9f89e
Switched title attribute to getAttributeNode for IE6/7. Fixes #9329 .
2011-05-18 11:05:20 -04:00
Rick Waldron
c17f589ec9
Landing pull request 377. Check custom data != null(undefined), allows zero; Fixes #9285 .
...
More Details:
- https://github.com/jquery/jquery/pull/377
- http://bugs.jquery.com/ticket/9285
2011-05-16 10:38:36 -04:00
timmywil
a5cf257a8a
Use getAttributeNode for ^on attributes in IE6/7 to avoid anonymous function wrapper. Fixes #9298 .
2011-05-16 10:17:50 -04:00
timmywil
6171e0a923
Retrieve the class attribute on a form in IE6/7. Fixes 9286.
2011-05-14 12:07:40 -04:00
timmywil
cf702496ee
Removing unnecessary argument type check for boolean hook
2011-05-13 13:47:44 -04:00
timmywil
bc82ff0ff9
Make sure setting boolean attributes to the same name sets the property to a boolean type
2011-05-13 13:39:38 -04:00
timmywil
6f676e692d
Use prop to retrieve boolean properties (so the selected hook will be used)
2011-05-13 13:33:43 -04:00
Rick Waldron
ec829431fe
Landing pull request 365. jQuery.buildFragment, ensure doc is a document; Fixes #8950 .
...
More Details:
- https://github.com/jquery/jquery/pull/365
- http://bugs.jquery.com/ticket/8950
2011-05-13 12:26:17 -04:00
timmywil
a5b7c0fa33
Style edits for pull request 375
2011-05-13 12:14:31 -04:00
avaly
cbbd7d28e1
Landing pull request 375. Added test case to support #9237 Fixes #9237 .
...
More Details:
- https://github.com/jquery/jquery/pull/375
- http://bugs.jquery.com/ticket/9237
2011-05-13 12:09:49 -04:00
timmywil
3486365062
Animation callbacks keep their place in the queue stack. Fixes #9220 .
2011-05-13 11:56:55 -04:00
jaubourg
ceba855c01
Fixes #9239 . If the body is already present in the DOM, use a div within it to perform boxModel-related support tests. Unit test added.
2011-05-13 17:43:53 +02:00
jaubourg
391398cf23
Fixes #9221 . Wraps openings of html comments and CDATA blocks found at the beginning of inserted script elements into a javascript block comment so that the new implementation of globalEval will not throw an exception in IE (execScript being less lenient than eval). Unit tests added.
2011-05-11 14:13:07 +02:00
John Resig
2812a87da7
Updating Sizzle.
2011-05-10 13:37:05 -04:00
John Resig
c8374fafe5
Update sizzle.
2011-05-10 12:54:29 -04:00
John Resig
1ec003f10c
Fix tabs in delegate test.
2011-05-10 12:43:34 -04:00
John Resig
a5e407cafb
Make sure that data properties with hyphens are always accessed/set using camelCase. Fixes #9124 .
2011-05-10 11:56:42 -04:00
John Resig
419b5e5e2a
Make sure that mouseenter/mouseleave fire on the correct element when doing delegation. Fixes #9069 .
2011-05-10 11:49:32 -04:00
louisremi
521ae562da
Landing pull request 374. .animate() Callbacks should fire in correct order (unit test included). Fixes #9100 .
...
More Details:
- https://github.com/jquery/jquery/pull/374
- https://github.com/jquery/jquery/issues/9100
2011-05-10 11:22:12 -04:00
Sahab Yazdani
304dd618b7
Landing pull request 370. Fixes #8763 .
...
More Details:
- https://github.com/jquery/jquery/pull/370
- https://github.com/jquery/jquery/issues/8763
2011-05-10 11:20:22 -04:00
timmywil
4526c8b0a0
Add fallback to prop for the window and document. Switch value to use the property instead of the attribute for back compat.
2011-05-10 00:28:02 -04:00
louisremi
076c347605
.animate() Callbacks should fire in correct order ( fix #9100 + unit test)
2011-05-09 17:35:51 +02:00
jaubourg
8c13cfa805
Fixes #9104 . Returning null or undefined in a pipe callback shouldn't end up throwing an exception. Silly, silly, me.
2011-05-09 10:01:20 +02:00
jaubourg
efd0fce7a1
Fixes #9109 . When jQuery is loaded in the body, then the fake body element used in support has to be inserted before the document's body for boxModel to be properly detected (got the hint by looking at the code in jQuery mobile). Test page added so that we can keep checking this.
2011-05-09 09:48:23 +02:00
timmywil
18b1cf2942
Remove value check from formHook; other elements can use value hook
2011-05-07 22:01:10 -04:00
timmywil
90f37aaf7a
Call extend on prop to avoid changing original properties so that per-property easing is not lost in multiple animations with the same props
2011-05-07 21:26:02 -04:00
timmywil
8bb6e95b66
Set val before hide/show check and fix easing setting; also update attributes test for autofocus
...
- The object passed should not change so it can be used in future animates, updated src and tests accordingly.
2011-05-07 20:46:38 -04:00
Daniel Pihlstrom
3d1c27d52e
Fix per-property easing. Fixes #9067
2011-05-07 19:28:07 -04:00
gnarf
31268449b9
Landing pull request 372. Test for numeric properties was using wrong variable. Fixes #9074 .
...
More Details:
- https://github.com/jquery/jquery/pull/372
2011-05-07 19:18:52 -04:00
timmywil
c085563270
Reduce the boolean list only to those that have corresponding IDLs that don't require being added to propFix; only set the IDL if it exists
...
- See http://jsfiddle.net/timmywil/u5NLn/ for how boolean attributes are handled in every browser.
2011-05-07 14:49:04 -04:00
timmywil
09c0cf995b
Global found in valHook for select(get)
2011-05-07 11:48:42 -04:00
timmywil
c864455ccf
Global found in dataAttr function
2011-05-06 14:54:47 -04:00
timmywil
c72b0f3256
Check empty string instead of specified as specified is inconsistent on the name attribute. Fixes #9148 .
2011-05-06 13:49:20 -04:00
timmywil
f7f8450041
tmp was global in the new fn.promise. Fixes #9147 .
2011-05-06 12:10:16 -04:00
timmywil
a257e07ae4
Reduce boolean attribute list to only content attributes
...
- Removed IDL-only boolean attributes as well as officially deprecated attributes that we've not supported before
2011-05-06 10:53:05 -04:00
timmywil
f30cd4155e
Update boolean attribute list to contain all boolean attributes listed in w3c
2011-05-05 14:37:59 -04:00
timmywil
cccf9ad91d
Add support for the contenteditable attribute
2011-05-05 12:52:04 -04:00
timmywil
5097e6d1c6
Construct boolHook and rboolean regex to deal with boolean attributes. Fixes #9129 . Fixes #9123 .
...
- Construct regex for all attributes which are boolean attributes by specification.
+ This allows us to do what users expect with enumerated attributes and allows us to no longer complicate the issue.
+ People are just too confused with passing "true" instead of true when they should, so we won't have to worry about that anymore.
- Modularize code for dealing with boolean attributes into a separate hook to keep attr short and fast.
2011-05-05 12:17:08 -04:00
timmywil
5195335cf4
Set the property corresponding to a boolean attribute when setting to true. Fixes #9103 .
...
- Once boolean properties had been modified natively, setting the attribute no longer set the current value
2011-05-04 15:53:00 -04:00
timmywil
3ed4b22073
Run property names through propFix in removeProp
2011-05-04 11:40:46 -04:00
timmywil
480b88ca37
Set corresponding property to false when removing boolean attributes. Fixes #9094
2011-05-04 11:29:38 -04:00
timmywil
97144424cc
Update boolean check to avoid crashes, add all name fixes to propFix (properties are case-sensitive in all browsers), add tests for prop
2011-05-04 00:31:01 -04:00
John Resig
a9d9f8c542
If no hook is provided, and a boolean property exists, use that to return an attribute-style value for boolean attributes. Fixes #9079 .
2011-05-03 21:44:42 -04:00
John Resig
bfad45fe45
Fix problem with appending multiple string arguments in IE 6. Fixes #9072 .
2011-05-03 15:02:26 -04:00
timmywil
4ac2fdda2c
Fix setting value attributes on option elements. Fixes #9071 .
2011-05-03 14:48:36 -04:00
John Resig
ca338dc749
Check for #8984 wasn't strong enough, enhanced.
2011-05-02 13:31:23 -04:00
John Resig
6c449fd5df
Make sure that empty nodelists continue to map properly. Fixes #8993 .
2011-05-02 13:25:53 -04:00
John Resig
86aa764f0b
Change check for skipping the initial quickExpr RegExp check. Fixes #8984 .
2011-05-02 13:14:13 -04:00
timmywil
f1392d8208
Set background to none on our mock body and remove its contents to avoid a crash in IE when removing it. Fixes #9028 .
2011-05-02 11:57:01 -04:00
timmywil
24a8ffb3ea
Test for a colon in attribute names for IE6/7. Fixes #1591 .
2011-05-01 17:09:50 -04:00
Rick Waldron
0c2d1aee54
jQuery.buildFragment, ensure doc is a document; Includes comments; Adds unit test. Fixes #8950
2011-04-30 10:42:36 -04:00
Rick Waldron
bf678fd9d6
Restores var names to satisfy the crock-machine. Supplements #9008
2011-04-28 22:26:34 -04:00
Rick Waldron
ca367674c1
Restored /g flag to rspaces; Adds unit tests; Supplements #9008
2011-04-28 21:15:45 -04:00
rwldrn
57f56be04f
Make cached rspaces regex definitions consistent. Fixes #9008
2011-04-28 16:06:13 -04:00
Rick Waldron
08f52d69bd
jQuery.support core style guide correction. Fixes #8978
2011-04-26 09:45:27 -04:00
timmywil
5165033883
Add tests data- and aria- attributes and the autofocus boolean attribute and some style updates in jQuery.attr
2011-04-25 12:41:12 -04:00
aFarkas
83e9ce95d7
handle data- and aria- special
2011-04-25 12:41:12 -04:00
aFarkas
9559b1a294
dealing with boolean content attribute
2011-04-25 12:41:12 -04:00
Jordan Boesch
02ad0aa3b6
Landing pull request 344. using jQuery.nodeName where applicable.
...
More Details:
- https://github.com/jquery/jquery/pull/344
2011-04-23 17:58:56 -04:00
timmywil
15ccae91db
Switch the form nodeName check in attr to use jQuery.nodeName for consistency
2011-04-23 13:56:51 -04:00
timmywil
bc7bb0df28
Merge branch 'master' of github.com:jquery/jquery
2011-04-22 00:28:11 -04:00
timmywil
2942be780f
Combine the support tests for radioValue and appendChecked
2011-04-22 00:27:52 -04:00
Rick Waldron
3d9445e3fc
Landing pull request 340. Adds widows, orphans to cssNumber hash; includes tests. Fixes #8936 .
...
More Details:
- https://github.com/jquery/jquery/pull/340
- http://bugs.jquery.com/ticket/8936
2011-04-22 00:02:08 -04:00
Dave Methvin
16312c6b06
Merge branch 'master' of github.com:jquery/jquery into fix-8790a-quicker-trigger
2011-04-21 22:15:21 -04:00
timmywil
d274b7b9f7
Landing pull request 332. Appending disconnected radio or checkbox inputs and keeping checked setting Fixes #8060 , #8500 .
...
More Details:
- https://github.com/jquery/jquery/pull/332
- http://bugs.jquery.com/ticket/8060
- http://bugs.jquery.com/ticket/8500
2011-04-21 21:51:23 -04:00
timmywil
3ac9eb7ce3
Landing pull request [337]( https://github.com/jquery/jquery/pull/337 ). Value of radio inputs resets when type is set after the value in all IEs. Fixes #8570 ([bug]( http://bugs.jquery.com/ticket/8570 )).
2011-04-21 21:33:09 -04:00
timmywil
dbe966aa57
Update Sizzle and QUnit
2011-04-21 13:03:19 -04:00
jaubourg
a28eadff48
Makes sure no unload handler is bound when not in IE. Also simplifies the whole "on unload abort" code. Also avoids the declaration of yet another variables in the jQuery main closure for the temporary XHR used to assess support properties.
2011-04-21 18:43:40 +02:00
jeresig
60cfab3d19
Updating Sizzle and QUnit.
2011-04-20 19:08:29 -04:00
timmywil
103d325887
Follow w3c standard for setting the common boolean attributes to the same name(selected, checked, readOnly, and disabled)
2011-04-19 17:48:07 -04:00
timmywil
8d2d94cfba
Fix test suite fails for hiding text nodes in F4 and IE9. Update for #6135 .
2011-04-19 13:45:01 -04:00
timmywil
825d3d96ce
Only use getAttributeNode on buttons when setting value
2011-04-19 13:17:38 -04:00
jaubourg
3a3842c669
(Re) Fixes #8884 in a way that keeps the format of the headers map sent to transports natural.
2011-04-19 00:29:20 -07:00
Rick Waldron
8d3754751d
DRY out #6514
2011-04-17 15:29:49 -07:00
timmywil
34d80709ce
Fix value attribute and val for value on button elements. Fixes #1954
2011-04-17 18:17:31 -04:00
John Resig
15da298f72
Remove unnecessary usage of Function.prototype.bind ( #7783 ) but maintain API. Also fix bug with proxy failing when a name is provided. Fixes #8893 .
2011-04-17 18:17:31 -04:00
Brian Brennan
3cb9c1835c
Fix live mouseenter and mouseleave binding so they can be activated by triggers. Fixes #6514 .
2011-04-17 18:17:31 -04:00
timmywil
230a50ff1c
Update Sizzle - qunit-fixture changes
2011-04-17 14:25:16 -04:00
timmywil
3aa46725ed
Merge branch 'qunit_fixture'
2011-04-17 14:12:31 -04:00
timmywil
68cc3ad730
Update QUnit, fix visibility of #dl and pass JSLint in effects.js
2011-04-17 14:12:05 -04:00
John Resig
21c0be8496
Make sure that hide or show don't fail when operating on non-Element nodes. Fixes #6135 .
2011-04-17 11:07:42 -07:00
John Resig
728a70c036
Make sure that forms and selects are added to a jQuery set correctly. Fixes #6912 .
2011-04-17 10:51:24 -07:00
Gilmore Davidson
a9b81d759a
Added check for live mouseenter/mouseleave events if bound to nested elements with the same selector. Fixes #5884 .
2011-04-17 10:34:38 -07:00
John Resig
adef5c3550
Make sure that there isn't an error if no event object exists. Fixes #8755 .
2011-04-17 10:21:46 -07:00
jrburke
0b1c2e642a
Add support for registering jQuery as an AMD module. Only does so if the AMD loader indicates it has special allowances for multiple versions of jQuery being loaded in a page.
2011-04-16 20:35:18 -07:00