Skip to content

Commit 7421f34

Browse files
committed
Oops, the sourceIndex of the documentElement in IE is 1, not 0.
1 parent e16c7fe commit 7421f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ if ( document.documentElement.compareDocumentPosition ) {
671671
}
672672
return ret;
673673
};
674-
} else if ( document.documentElement.sourceIndex === 0 ) {
674+
} else if ( document.documentElement.sourceIndex === 1 ) {
675675
sortOrder = function( a, b ) {
676676
var ret = a.sourceIndex - b.sourceIndex;
677677
if ( ret === 0 ) {

0 commit comments

Comments
 (0)