From 95094d16858f872ccf99ac50f605a88fbdcbe1bc Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 12 Jan 2009 14:45:58 +0000 Subject: [PATCH] Merged in a fix from Sizzle for :not(:first). --- src/selector.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/selector.js b/src/selector.js index e1e272bc..2235d7a5 100644 --- a/src/selector.js +++ b/src/selector.js @@ -182,6 +182,8 @@ Sizzle.filter = function(expr, set, inplace, not){ if ( !match ) { anyFound = found = true; + } else if ( match === true ) { + continue; } else if ( match[0] === true ) { goodArray = []; var last = null, elem; @@ -411,6 +413,8 @@ var Expr = Sizzle.selectors = { } return false; } + } else if ( Expr.match.POS.test( match[0] ) ) { + return true; } return match;