mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Shortened the isXMLDoc code, based upon recommendation from Andrea.
This commit is contained in:
parent
2cd9ee3510
commit
255a293cda
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user