diff --git a/src/selector/selector.js b/src/selector/selector.js index b8f0cb30..a21e5794 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -85,7 +85,7 @@ jQuery.extend({ /^(\+)/, "jQuery.nth(a,2,'nextSibling')", /^(~)/, function(a){ var s = jQuery.sibling(a.parentNode.firstChild); - return s.slice(0, jQuery.inArray(a,s)); + return s.slice(jQuery.inArray(a,s) + 1); } ],