We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e300eeb commit 2f96e52Copy full SHA for 2f96e52
sizzle.js
@@ -933,6 +933,10 @@ if ( document.documentElement.compareDocumentPosition ) {
933
hasDuplicate = true;
934
return 0;
935
936
+ // Fallback to using sourceIndex (in IE) if it's available on both nodes
937
+ } else if ( a.sourceIndex && b.sourceIndex ) {
938
+ return a.sourceIndex - b.sourceIndex;
939
+
940
// If the nodes are siblings (or identical) we can do a quick check
941
} else if ( aup === bup ) {
942
return siblingCheck( a, b );
0 commit comments