git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd9ee3
)
Shortened the isXMLDoc code, based upon recommendation from Andrea.
author
John Resig
<jeresig@gmail.com>
Mon, 27 Jul 2009 13:21:19 +0000
(13:21 +0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 27 Jul 2009 13:21:19 +0000
(13:21 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
097ff42
..
7e7a4e2
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-315,8
+315,7
@@
jQuery.extend({
isXMLDoc: function( elem ) {
// documentElement is verified for cases where it doesn't yet exist
// (such as loading iframes in IE - #4833)
- var documentElement = (elem.ownerDocument || elem).documentElement;
- return !!documentElement && documentElement.nodeName !== "HTML";
+ return ((elem.ownerDocument || elem).documentElement || 0).nodeName !== "HTML";
},
// Evalulates a script in a global context