Skip to content
Permalink
Browse files

Fixed the logic for determining if an XML file is being used. Fixes j…

…Query bug #3896.
  • Loading branch information
jeresig committed Jan 19, 2009
1 parent 1d513ef commit d6e541426d10b335fa3b6b481ae591ede977c480
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/selector.js
@@ -809,8 +809,8 @@ var contains = document.compareDocumentPosition ? function(a, b){
};

var isXML = function(elem){
return elem.documentElement && !elem.body ||
elem.tagName && elem.ownerDocument && !elem.ownerDocument.body;
return elem && elem.nodeType === 9 && elem.nodeName !== "HTML" ||
isXML( elem.ownerDocument );
};

var posProcess = function(selector, context){

0 comments on commit d6e5414

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