Skip to content
Permalink
Browse files

Oops, the sourceIndex of the documentElement in IE is 1, not 0.

  • Loading branch information
jeresig committed Feb 14, 2009
1 parent e16c7fe commit 7421f342840947a746aa6be944221e931e3556cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ) {

0 comments on commit 7421f34

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