mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Re-worked the logic for handling isXML detection.
This commit is contained in:
parent
96152559e0
commit
82e8d11c12
@ -809,8 +809,8 @@ var contains = document.compareDocumentPosition ? function(a, b){
|
||||
};
|
||||
|
||||
var isXML = function(elem){
|
||||
return elem && elem.nodeType === 9 && elem.nodeName !== "HTML" ||
|
||||
isXML( elem.ownerDocument );
|
||||
return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
|
||||
!!elem.ownerDocument && isXML( elem.ownerDocument );
|
||||
};
|
||||
|
||||
var posProcess = function(selector, context){
|
||||
|
Loading…
Reference in New Issue
Block a user