After discussing it with a number of users I've decided to revert the change to [name!=value]. It is now equal to :not([attr!=value]). Attempting to switch it to [attr]:not([attr!=value]) produced some really non-obvious results and confused users. Fixes jQuery bug #3884.

This commit is contained in:
John Resig 2009-01-21 22:36:21 +00:00
parent 626961c4a5
commit 9b3804a8ec
2 changed files with 3 additions and 2 deletions

View file

@ -564,7 +564,7 @@ var Expr = Sizzle.selectors = {
ATTR: function(elem, match){
var result = Expr.attrHandle[ match[1] ] ? Expr.attrHandle[ match[1] ]( elem ) : elem[ match[1] ] || elem.getAttribute( match[1] ), value = result + "", type = match[2], check = match[4];
return result == null ?
false :
type === "!=" :
type === "=" ?
value === check :
type === "*=" ?