Commit 089da4ea authored by John Resig's avatar John Resig

Brought in a fix from Sizzle - IE doesn't have .contains on XML elements.

parent d3141dcd
...@@ -778,7 +778,7 @@ function dirCheck( dir, cur, doneName, checkSet, nodeCheck ) { ...@@ -778,7 +778,7 @@ function dirCheck( dir, cur, doneName, checkSet, nodeCheck ) {
var contains = document.compareDocumentPosition ? function(a, b){ var contains = document.compareDocumentPosition ? function(a, b){
return a.compareDocumentPosition(b) & 16; return a.compareDocumentPosition(b) & 16;
} : function(a, b){ } : function(a, b){
return a !== b && a.contains(b); return a !== b && a.contains ? a.contains(b) : true;
}; };
// EXPOSE // EXPOSE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment