Commit 7421f342 authored by John Resig's avatar John Resig

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

parent e16c7fe0
...@@ -671,7 +671,7 @@ if ( document.documentElement.compareDocumentPosition ) { ...@@ -671,7 +671,7 @@ if ( document.documentElement.compareDocumentPosition ) {
} }
return ret; return ret;
}; };
} else if ( document.documentElement.sourceIndex === 0 ) { } else if ( document.documentElement.sourceIndex === 1 ) {
sortOrder = function( a, b ) { sortOrder = function( a, b ) {
var ret = a.sourceIndex - b.sourceIndex; var ret = a.sourceIndex - b.sourceIndex;
if ( ret === 0 ) { if ( ret === 0 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment