Skip to content
Permalink
Browse files

Shortened the isXMLDoc code, based upon recommendation from Andrea.

  • Loading branch information
jeresig committed Jul 27, 2009
1 parent 2cd9ee3 commit 255a293cda03e787998747a3f7b1e456b683a0f6
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit 255a293

Please sign in to comment.
You can’t perform that action at this time.