git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3141dc
)
Brought in a fix from Sizzle - IE doesn't have .contains on XML elements.
author
John Resig
<jeresig@gmail.com>
Mon, 5 Jan 2009 21:59:07 +0000
(21:59 +0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 5 Jan 2009 21:59:07 +0000
(21:59 +0000)
src/selector.js
patch
|
blob
|
history
diff --git
a/src/selector.js
b/src/selector.js
index
b3d8dbc
..
8ade53b
100644
(file)
--- a/
src/selector.js
+++ b/
src/selector.js
@@
-778,7
+778,7
@@
function dirCheck( dir, cur, doneName, checkSet, nodeCheck ) {
var contains = document.compareDocumentPosition ? function(a, b){
return a.compareDocumentPosition(b) & 16;
} : function(a, b){
- return a !== b && a.contains(b);
+ return a !== b && a.contains ? a.contains(b) : true;
};
// EXPOSE