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:
e16c7fe
)
Oops, the sourceIndex of the documentElement in IE is 1, not 0.
author
John Resig
<jeresig@gmail.com>
Sat, 14 Feb 2009 17:06:30 +0000
(17:06 +0000)
committer
John Resig
<jeresig@gmail.com>
Sat, 14 Feb 2009 17:06:30 +0000
(17:06 +0000)
src/selector.js
patch
|
blob
|
history
diff --git
a/src/selector.js
b/src/selector.js
index
bc898e1
..
5712f57
100644
(file)
--- a/
src/selector.js
+++ b/
src/selector.js
@@
-671,7
+671,7
@@
if ( document.documentElement.compareDocumentPosition ) {
}
return ret;
};
-} else if ( document.documentElement.sourceIndex === 0 ) {
+} else if ( document.documentElement.sourceIndex === 1 ) {
sortOrder = function( a, b ) {
var ret = a.sourceIndex - b.sourceIndex;
if ( ret === 0 ) {