jquery.git
14 years agoForce the submodules to keep up to date.
John Resig [Tue, 10 Nov 2009 01:13:58 +0000 (02:13 +0100)]
Force the submodules to keep up to date.

14 years agoRequire that, at least, document.body exists before firing the ready event. This...
John Resig [Mon, 9 Nov 2009 12:47:53 +0000 (13:47 +0100)]
Require that, at least, document.body exists before firing the ready event. This may stop jQuery from working on pages that don't create a document.body (such as Safari, when no body exists) but considering that we've required a document.body since 1.3 and haven't broken any pages, this doesn't appear to be a pressing issue. Used the test case written by dmethvin to verify the bug and the fix. Fixes #4320.

14 years agoBacking out commit 81bfd9b870f658ce00eec48ea48a84d69c20bf05, read the ticket incorrec...
John Resig [Mon, 9 Nov 2009 12:30:33 +0000 (13:30 +0100)]
Backing out commit 81bfd9b870f658ce00eec48ea48a84d69c20bf05, read the ticket incorrectly - and seeing some of the other earlier tickets it's obvious that a more generic solution is needed. Thanks jdalton for the catch.

14 years agoMerge branch 'master' of git@github.com:jquery/jquery
John Resig [Mon, 9 Nov 2009 12:01:10 +0000 (13:01 +0100)]
Merge branch 'master' of git@github.com:jquery/jquery

14 years agoMaking mouseenter and mouseleave work with .live().
lrbabe [Mon, 9 Nov 2009 11:59:54 +0000 (12:59 +0100)]
Making mouseenter and mouseleave work with .live().

14 years agoCleanup bubbling focus and blur events
lrbabe [Fri, 6 Nov 2009 11:59:45 +0000 (19:59 +0800)]
Cleanup bubbling focus and blur events
- Use cached event instead of jQuery.event
- Do not cache event.special if you use it only once

14 years agoMade the closest method evaluate the selector with appropriate context.
Robert Katić [Mon, 9 Nov 2009 11:39:29 +0000 (12:39 +0100)]
Made the closest method evaluate the selector with appropriate context.

14 years agoAdded a method to myKlass.
rkatic [Mon, 9 Nov 2009 10:55:25 +0000 (18:55 +0800)]
Added a method to myKlass.
If an object's prototype is "empty", then isObject returns true!

14 years agoAdded comments to isObject.
rkatic [Sun, 8 Nov 2009 23:26:01 +0000 (07:26 +0800)]
Added comments to isObject.

14 years agoFixing spacing problems from rkatic's patches.
John Resig [Sat, 7 Nov 2009 16:40:47 +0000 (17:40 +0100)]
Fixing spacing problems from rkatic's patches.

14 years agoMake liveHandler to use jQuery.lastCloser and speed up internal sorting.
rkatic [Sat, 7 Nov 2009 16:10:58 +0000 (00:10 +0800)]
Make liveHandler to use jQuery.lastCloser and speed up internal sorting.

14 years agoStore last closer value to jQuery.lastCloser instead of using data API.
rkatic [Sat, 7 Nov 2009 16:04:08 +0000 (00:04 +0800)]
Store last closer value to jQuery.lastCloser instead of using data API.

14 years agoMade sure that animate callbacks get executed even when no properties are passed...
John Resig [Sat, 7 Nov 2009 16:22:35 +0000 (17:22 +0100)]
Made sure that animate callbacks get executed even when no properties are passed in. Fixes #5459.

14 years agoMake .add() take an optional context and - if a context is specified in the root...
John Resig [Sat, 7 Nov 2009 15:43:31 +0000 (16:43 +0100)]
Make .add() take an optional context and - if a context is specified in the root selector - use that as the base context.

14 years agoComment nodes are discarded from a merge, for no apparent reason. Fixes #5438.
John Resig [Sat, 7 Nov 2009 15:15:33 +0000 (16:15 +0100)]
Comment nodes are discarded from a merge, for no apparent reason. Fixes #5438.

14 years agojQuery.ajax modified the passed-in object only to help test the code - this shouldn...
John Resig [Sat, 7 Nov 2009 15:08:07 +0000 (16:08 +0100)]
jQuery.ajax modified the passed-in object only to help test the code - this shouldn't occur. Fixes #5439.

14 years agoA typechange for test/qunit.
John Resig [Sat, 7 Nov 2009 15:03:16 +0000 (16:03 +0100)]
A typechange for test/qunit.

14 years agoMake sure that document.body exists, at least, in IE before the ready event is fired...
John Resig [Sat, 7 Nov 2009 15:00:43 +0000 (16:00 +0100)]
Make sure that document.body exists, at least, in IE before the ready event is fired. Fixes #5443.

14 years agoThe complete event wasn't getting called on local file 404s. Thanks to 'mrspeaker...
John Resig [Sat, 7 Nov 2009 13:59:47 +0000 (14:59 +0100)]
The complete event wasn't getting called on local file 404s. Thanks to 'mrspeaker' for the patch. Fixes #5468.

14 years agoFixed the case where getComputedStyled was assumed to exist if getBoundingClientRect...
John Resig [Sat, 7 Nov 2009 13:57:27 +0000 (14:57 +0100)]
Fixed the case where getComputedStyled was assumed to exist if getBoundingClientRect did (which isn't the case on the Playstation 3). Fixes #5467.

14 years agoRemoving some of the SVN-specific stuff from the Ant build file (should probably...
John Resig [Sat, 7 Nov 2009 13:55:14 +0000 (14:55 +0100)]
Removing some of the SVN-specific stuff from the Ant build file (should probably be updated to use the new Git functionality.

14 years agochanged the extension of the README from .markdown to .md
Michael Bensoussan [Mon, 2 Nov 2009 22:58:12 +0000 (06:58 +0800)]
changed the extension of the README from .markdown to .md

14 years agoupdate the README title with a direct link
Michael Bensoussan [Mon, 2 Nov 2009 21:41:03 +0000 (05:41 +0800)]
update the README title with a direct link

14 years agoupdate the README for more readbility
Michael Bensoussan [Mon, 2 Nov 2009 21:40:00 +0000 (05:40 +0800)]
update the README for more readbility

14 years agofrom txt to markdown
Michael Bensoussan [Mon, 2 Nov 2009 21:36:49 +0000 (05:36 +0800)]
from txt to markdown

14 years agoConsistant splits using " " instead of ","
visionmedia [Fri, 23 Oct 2009 15:52:38 +0000 (23:52 +0800)]
Consistant splits using " " instead of ","

This was used in several other areas, and IMO is easier to read
and since nothing is multi-word then we misewell use " "

14 years agoPull in the Sizzle library dynamically using a submodule and make it part of the...
John Resig [Mon, 26 Oct 2009 22:23:31 +0000 (18:23 -0400)]
Pull in the Sizzle library dynamically using a submodule and make it part of the jQuery build process.

14 years agoMoved a bunch of methods out of the jQuery-specific Sizzle code into more-appropriate...
John Resig [Mon, 26 Oct 2009 22:07:57 +0000 (18:07 -0400)]
Moved a bunch of methods out of the jQuery-specific Sizzle code into more-appropriate files, in jQuery itself.

14 years agofix sed statement used to extract the date
Jon Evans [Fri, 23 Oct 2009 10:13:26 +0000 (18:13 +0800)]
fix sed statement used to extract the date

14 years agoRemoved the revision info and fixed the date pull to work against git log instead...
John Resig [Fri, 23 Oct 2009 07:25:40 +0000 (03:25 -0400)]
Removed the revision info and fixed the date pull to work against git log instead of SVN.

14 years agoRemoving the old speed perf directory (the current one is in the main 'speed' directory).
John Resig [Fri, 23 Oct 2009 02:06:20 +0000 (22:06 -0400)]
Removing the old speed perf directory (the current one is in the main 'speed' directory).

14 years agoOnly need Java if you want to build a minified version of jQuery.
John Resig [Fri, 23 Oct 2009 01:57:45 +0000 (21:57 -0400)]
Only need Java if you want to build a minified version of jQuery.

14 years agoRemoved the 'lite' build option (no longer used) and updated the README.
John Resig [Fri, 23 Oct 2009 01:56:49 +0000 (21:56 -0400)]
Removed the 'lite' build option (no longer used) and updated the README.

14 years agoCleaned out the build directory - a lot of old files that weren't being used anymore.
John Resig [Fri, 23 Oct 2009 01:54:34 +0000 (21:54 -0400)]
Cleaned out the build directory - a lot of old files that weren't being used anymore.

14 years agoRemoving some old text files.
John Resig [Fri, 23 Oct 2009 01:45:36 +0000 (21:45 -0400)]
Removing some old text files.

14 years agoAdded the submodule init/update to the Makefile for 'make test' and updated the READM...
John Resig [Fri, 23 Oct 2009 01:44:44 +0000 (21:44 -0400)]
Added the submodule init/update to the Makefile for 'make test' and updated the README to be more current.

14 years agoPull in QUnit using a submodule. In order to build jQuery (and run the tests) you...
John Resig [Fri, 23 Oct 2009 01:39:41 +0000 (21:39 -0400)]
Pull in QUnit using a submodule. In order to build jQuery (and run the tests) you'll need to do 'git submodule init' and 'git submodule update' after checkout.

14 years agoWe don't want to filter out the qunit file.
John Resig [Fri, 23 Oct 2009 01:26:28 +0000 (21:26 -0400)]
We don't want to filter out the qunit file.

14 years agoFixed the cleaning method to support namespaced elements. Thanks to einaros for the...
John Resig [Mon, 12 Oct 2009 16:26:01 +0000 (16:26 +0000)]
Fixed the cleaning method to support namespaced elements. Thanks to einaros for the patch recommendation. Fixes #5358.

14 years agoFixed == change in ready.
John Resig [Thu, 8 Oct 2009 18:13:07 +0000 (18:13 +0000)]
Fixed == change in ready.

14 years agoUpdated the jQuery suite to use the updated QUnit CSS styling.
John Resig [Tue, 29 Sep 2009 22:48:25 +0000 (22:48 +0000)]
Updated the jQuery suite to use the updated QUnit CSS styling.

14 years agoUpdated the jQuery test suite to use the new QUnit file names.
John Resig [Tue, 29 Sep 2009 22:25:02 +0000 (22:25 +0000)]
Updated the jQuery test suite to use the new QUnit file names.

14 years agoMoved the jQuery-specific test suite CSS into a separate file.
John Resig [Tue, 29 Sep 2009 22:09:21 +0000 (22:09 +0000)]
Moved the jQuery-specific test suite CSS into a separate file.

14 years agoAdapted the jQuery test suite to handle the toolbar moving inline.
John Resig [Tue, 29 Sep 2009 21:40:17 +0000 (21:40 +0000)]
Adapted the jQuery test suite to handle the toolbar moving inline.

14 years agoUpdated the jQuery suite to use the new 'qunit-' prefix on specific elements.
John Resig [Tue, 29 Sep 2009 21:34:12 +0000 (21:34 +0000)]
Updated the jQuery suite to use the new 'qunit-' prefix on specific elements.

14 years agoFixed the q() method to use same instead of isSet.
John Resig [Tue, 29 Sep 2009 21:22:35 +0000 (21:22 +0000)]
Fixed the q() method to use same instead of isSet.

14 years agoSwitched from using QUnit's isObj/isSet to the more robust same method.
John Resig [Tue, 29 Sep 2009 19:49:43 +0000 (19:49 +0000)]
Switched from using QUnit's isObj/isSet to the more robust same method.

14 years agoMoved some jQuery-specific test methods into the core module.
John Resig [Tue, 29 Sep 2009 18:11:10 +0000 (18:11 +0000)]
Moved some jQuery-specific test methods into the core module.

14 years agoMoved the init test script off into a separate file.
John Resig [Tue, 29 Sep 2009 18:06:16 +0000 (18:06 +0000)]
Moved the init test script off into a separate file.

14 years agoAdding in .unwrap() support, thanks to Ben Alman! Fixes #5191.
John Resig [Fri, 25 Sep 2009 21:41:21 +0000 (21:41 +0000)]
Adding in .unwrap() support, thanks to Ben Alman! Fixes #5191.

14 years agoRemoved the trailing endline from the version.
John Resig [Fri, 25 Sep 2009 21:36:40 +0000 (21:36 +0000)]
Removed the trailing endline from the version.

14 years agoFull steam ahead! We're going for 1.4.
John Resig [Fri, 25 Sep 2009 18:21:02 +0000 (18:21 +0000)]
Full steam ahead! We're going for 1.4.

14 years agoA follow-up to [6578] (which stopped adding expandos to elements that didn't have...
John Resig [Fri, 25 Sep 2009 17:55:20 +0000 (17:55 +0000)]
A follow-up to [6578] (which stopped adding expandos to elements that didn't have data). That broke jQuery.unique() (so we're now using the unique from Sizzle). Using Sizzle's unique (which also sorts in document order) changed how add, andSelf, parents, nextAll, prevAll, and siblings work. after and before were changed to not use .add() (in order to guarantee their position in the jQuery set). Also, jQuery.data(elem) was updated to return that element's data object (instead of its ID).

$("<div/>").after("<span/>")
=> [ div, span ]
(calling after on a disconnected DOM node adds the nodes to the end of the jQuery set)

$("<div/>").before("<span/>")
=> [ span, div ]
(calling before on a disconnected DOM node adds the nodes to the beginning of the jQuery set)

$("div").add("span")
=> [ div, span, span, div, span ]
(results now come out in document order)

$("div").find("code").andSelf();
=> [ div, code, code ]
(results now come out in document order)

Same goes for .parents(), .nextAll(), .prevAll(), and .siblings().

Exception: .parents() will still return the results in reverse document order.

jQuery.data(elem)
=> { object of data }
(no longer returns the unique ID assigned to the node)

14 years agoGetting $.param working well; Patch by ben_alman
Yehuda Katz [Thu, 17 Sep 2009 22:37:19 +0000 (22:37 +0000)]
Getting $.param working well; Patch by ben_alman

14 years agoProbably not the optimal solution, but tests pass.
Yehuda Katz [Wed, 16 Sep 2009 08:33:00 +0000 (08:33 +0000)]
Probably not the optimal solution, but tests pass.

14 years agojquery event: closes #5250. bind(), unbind() and one() support Object Literals (needs...
Ariel Flesler [Wed, 16 Sep 2009 02:19:18 +0000 (02:19 +0000)]
jquery event: closes #5250. bind(), unbind() and one() support Object Literals (needs some refactor though)

14 years agodata should not add expando unless actually adding data
Brandon Aaron [Tue, 15 Sep 2009 21:14:08 +0000 (21:14 +0000)]
data should not add expando unless actually adding data

14 years agoMissing a var on a for loop, caused a variable to be leaked.
John Resig [Tue, 15 Sep 2009 21:09:46 +0000 (21:09 +0000)]
Missing a var on a for loop, caused a variable to be leaked.

14 years agoMissing a var on a for loop, caused a variable to be leaked.
John Resig [Tue, 15 Sep 2009 21:01:00 +0000 (21:01 +0000)]
Missing a var on a for loop, caused a variable to be leaked.

14 years agooffset is now a setter
Brandon Aaron [Tue, 15 Sep 2009 19:15:04 +0000 (19:15 +0000)]
offset is now a setter

14 years agoremove globals in tests for compability with ?noglobals, to be enabled by default
Jörn Zaefferer [Tue, 15 Sep 2009 17:51:38 +0000 (17:51 +0000)]
remove globals in tests for compability with ?noglobals, to be enabled by default

14 years agofixed global variables introduced in for loop with missing var-keyword (detected...
Jörn Zaefferer [Tue, 15 Sep 2009 17:39:21 +0000 (17:39 +0000)]
fixed global variables introduced in for loop with missing var-keyword (detected via QUnit's no ?noglobals)

14 years agojquery attributes: closes #5234. attr() supports jQuery.fn methods.
Ariel Flesler [Tue, 15 Sep 2009 17:23:26 +0000 (17:23 +0000)]
jquery attributes: closes #5234. attr() supports jQuery.fn methods.

14 years agotestrunner: focus & blur events could fail if the window isn't focused
Ariel Flesler [Tue, 15 Sep 2009 17:11:15 +0000 (17:11 +0000)]
testrunner: focus & blur events could fail if the window isn't focused

14 years agoAdding some fixes for commit [6537]. If there's leading whitespace, or if an exceptio...
John Resig [Tue, 15 Sep 2009 16:46:15 +0000 (16:46 +0000)]
Adding some fixes for commit [6537]. If there's leading whitespace, or if an exception is thrown by innerHTML, we need to use the old style method.

14 years agojquery ajax: addition for #2452. Wasn't working correctly in some cases.
Ariel Flesler [Tue, 15 Sep 2009 16:45:37 +0000 (16:45 +0000)]
jquery ajax: addition for #2452. Wasn't working correctly in some cases.

14 years agoFix for SVN rev [6537]. Events weren't being unbound correctly in Internet Explorer...
John Resig [Tue, 15 Sep 2009 15:56:18 +0000 (15:56 +0000)]
Fix for SVN rev [6537]. Events weren't being unbound correctly in Internet Explorer (cleanData wasn't handling malformed NodeList results correctly).

14 years agojquery ajax: closes #2452. get() and post() weren't shifting all arguments correctly.
Ariel Flesler [Tue, 15 Sep 2009 15:28:28 +0000 (15:28 +0000)]
jquery ajax: closes #2452. get() and post() weren't shifting all arguments correctly.

14 years agojquery ajax: closes #4994. Adding 'context' setting to $.ajax
Ariel Flesler [Tue, 15 Sep 2009 15:19:58 +0000 (15:19 +0000)]
jquery ajax: closes #4994. Adding 'context' setting to $.ajax

14 years agoavoid creating a new data cache if we don't need one. Also, short-circuit the case...
Yehuda Katz [Tue, 15 Sep 2009 07:59:53 +0000 (07:59 +0000)]
avoid creating a new data cache if we don't need one. Also, short-circuit the case where $.data is used to get the cache id

14 years agojquery data: adding missing semicolons
Ariel Flesler [Tue, 15 Sep 2009 01:02:18 +0000 (01:02 +0000)]
jquery data: adding missing semicolons

14 years agoMake jQuery.winnow a local function
Yehuda Katz [Tue, 15 Sep 2009 00:35:35 +0000 (00:35 +0000)]
Make jQuery.winnow a local function

14 years agojquery fx: closes #2542. show/hide(0, fn) wasn't calling the callback.
Ariel Flesler [Tue, 15 Sep 2009 00:32:13 +0000 (00:32 +0000)]
jquery fx: closes #2542. show/hide(0, fn) wasn't calling the callback.

14 years agotestrunner: resetting the scroll position after focusing a field
Ariel Flesler [Mon, 14 Sep 2009 23:28:21 +0000 (23:28 +0000)]
testrunner: resetting the scroll position after focusing a field

14 years agoAnother fix for [6537] - make sure that .innerHTML isn't used on non-HTML documents...
John Resig [Mon, 14 Sep 2009 23:20:23 +0000 (23:20 +0000)]
Another fix for [6537] - make sure that .innerHTML isn't used on non-HTML documents and that we only attempt to use .innerHTML on DOM Elements.

14 years agoFixed a bug introduced in SVN rev [6537] that caused XML-based fragment creation...
John Resig [Mon, 14 Sep 2009 23:12:06 +0000 (23:12 +0000)]
Fixed a bug introduced in SVN rev [6537] that caused XML-based fragment creation to fail, in IE.

14 years agojquery event: misc removal
Ariel Flesler [Mon, 14 Sep 2009 22:58:20 +0000 (22:58 +0000)]
jquery event: misc removal

14 years agojquery data: closes #5224. Exposing the expando.
Ariel Flesler [Mon, 14 Sep 2009 22:34:04 +0000 (22:34 +0000)]
jquery data: closes #5224. Exposing the expando.

14 years agoAdded support for .before(), .after(), and .replaceWith() on disconnected DOM nodes...
John Resig [Mon, 14 Sep 2009 22:09:42 +0000 (22:09 +0000)]
Added support for .before(), .after(), and .replaceWith() on disconnected DOM nodes. Fixes bug #3940.

14 years agojquery event: fixes #4989. blur and focus events now bubble and can be handled using...
Ariel Flesler [Mon, 14 Sep 2009 22:04:22 +0000 (22:04 +0000)]
jquery event: fixes #4989. blur and focus events now bubble and can be handled using live().

14 years agofix for #5198, event memory leak limited to IE only via conditional compilation
Brandon Aaron [Mon, 14 Sep 2009 21:14:15 +0000 (21:14 +0000)]
fix for #5198, event memory leak limited to IE only via conditional compilation

14 years agofix for #5017
Brandon Aaron [Mon, 14 Sep 2009 20:55:40 +0000 (20:55 +0000)]
fix for #5017

14 years agoremove and detach unit tests were not cleaning up, causing selector tests to fail
Brandon Aaron [Mon, 14 Sep 2009 20:45:58 +0000 (20:45 +0000)]
remove and detach unit tests were not cleaning up, causing selector tests to fail

14 years agojquery ajax: Misc rename
Ariel Flesler [Mon, 14 Sep 2009 19:57:49 +0000 (19:57 +0000)]
jquery ajax: Misc rename

14 years agojquery core: Fixed #5202. Fixing selector generation when a manipulation function...
Ariel Flesler [Mon, 14 Sep 2009 18:03:18 +0000 (18:03 +0000)]
jquery core: Fixed #5202. Fixing selector generation when a manipulation function receives a jQuery object.

14 years agojquery core: removing the body optimization, as it is then handled by $("TAG").
Ariel Flesler [Mon, 14 Sep 2009 17:33:15 +0000 (17:33 +0000)]
jquery core: removing the body optimization, as it is then handled by $("TAG").

14 years agojquery core: commenting the new access function.
Ariel Flesler [Fri, 11 Sep 2009 17:47:40 +0000 (17:47 +0000)]
jquery core: commenting the new access function.

14 years agojquery core: Closes #5189. Added a generic function to handle getting/setting key...
Ariel Flesler [Wed, 9 Sep 2009 21:14:28 +0000 (21:14 +0000)]
jquery core: Closes #5189. Added a generic function to handle getting/setting key-value/setting a hash.

14 years agojquery core: fixes 5187. getElementsByTagName optimization was breaking $('div')...
Ariel Flesler [Wed, 9 Sep 2009 16:50:58 +0000 (16:50 +0000)]
jquery core: fixes 5187. getElementsByTagName optimization was breaking $('div').live()

14 years agojquery core: closes #5186. getElementsByTagName optimization was breaking the selecto...
Ariel Flesler [Wed, 9 Sep 2009 16:33:16 +0000 (16:33 +0000)]
jquery core: closes #5186. getElementsByTagName optimization was breaking the selector attribute.

14 years agoAdded support for .eq(-N), .first(), and .last(). Fixes #2164 and #4188.
John Resig [Wed, 9 Sep 2009 00:21:21 +0000 (00:21 +0000)]
Added support for .eq(-N), .first(), and .last(). Fixes #2164 and #4188.

14 years agoOptimize jQuery() for the case $("TAG").
John Resig [Tue, 8 Sep 2009 04:26:47 +0000 (04:26 +0000)]
Optimize jQuery() for the case $("TAG").

14 years agoUse the native Array indexOf method if it exists, for jQuery.inArray.
John Resig [Tue, 8 Sep 2009 01:45:11 +0000 (01:45 +0000)]
Use the native Array indexOf method if it exists, for jQuery.inArray.

14 years agoRemoved jQuery.className.(has|remove|add) in favor of .addClass/removeClass/hasClass...
John Resig [Tue, 8 Sep 2009 01:07:50 +0000 (01:07 +0000)]
Removed jQuery.className.(has|remove|add) in favor of .addClass/removeClass/hasClass. Also rewrote the functions for additional performance.

14 years agoBroke the logic for .clean() wrap out into a separate, static, data structure. Also...
John Resig [Mon, 7 Sep 2009 20:55:36 +0000 (20:55 +0000)]
Broke the logic for .clean() wrap out into a separate, static, data structure. Also improved the performance of .html() looking for the case where .innerHTML can be used without problems. Also tweaked some cases where cleanData() was used, no need to use jQuery selectors in these cases.

14 years agoSplit out the fragment-building code from domManip. Switched core.js to using that...
John Resig [Mon, 7 Sep 2009 18:58:01 +0000 (18:58 +0000)]
Split out the fragment-building code from domManip. Switched core.js to using that instead. Also moved the standalone tag detection to $(...) for performance.

14 years agoAdded an optimization for the case where $("body") is used.
John Resig [Mon, 7 Sep 2009 17:20:38 +0000 (17:20 +0000)]
Added an optimization for the case where $("body") is used.

14 years agoAdds nested param serialization; Closes #4201 (by merbjedi)
Yehuda Katz [Wed, 2 Sep 2009 05:16:21 +0000 (05:16 +0000)]
Adds nested param serialization; Closes #4201 (by merbjedi)

14 years agoFixed a bug with the isXMLDoc test - also made sure that isXMLDoc was handling the...
John Resig [Thu, 27 Aug 2009 20:07:45 +0000 (20:07 +0000)]
Fixed a bug with the isXMLDoc test - also made sure that isXMLDoc was handling the case where documentElement is undefined (which only occurs on HTML documents in IE).

14 years agoTweaked the isXMLDoc iframe test case to test the document, not the body element...
John Resig [Thu, 27 Aug 2009 19:22:48 +0000 (19:22 +0000)]
Tweaked the isXMLDoc iframe test case to test the document, not the body element (which doesn't exist in IE). Also made the isXMLDoc code handle cases where elem is null, undefined, etc.