mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Brought in a fix from Sizzle - IE doesn't have .contains on XML elements.
This commit is contained in:
parent
d3141dcdba
commit
089da4ea77
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user