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){
|
var isXML = function(elem){
|
||||||
return elem && elem.nodeType === 9 && elem.nodeName !== "HTML" ||
|
return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
|
||||||
isXML( elem.ownerDocument );
|
!!elem.ownerDocument && isXML( elem.ownerDocument );
|
||||||
};
|
};
|
||||||
|
|
||||||
var posProcess = function(selector, context){
|
var posProcess = function(selector, context){
|
||||||
|
|
Loading…
Reference in a new issue