Skip to content

Commit

Permalink
Oops, the sourceIndex of the documentElement in IE is 1, not 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Feb 14, 2009
1 parent e16c7fe commit 7421f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selector.js
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 7421f34

Please sign in to comment.