diff options
author | John Resig <jeresig@gmail.com> | 2009-01-21 22:36:21 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-01-21 22:36:21 +0000 |
commit | 9b3804a8eca6ce04dd48fbfcc157c8d176a25397 (patch) | |
tree | 728264b51f233f656e8d6ce0e100f0d7ce7d686f /test/unit/selector.js | |
parent | 626961c4a54cccaae0ecef81f2058cd0888611cc (diff) | |
download | jquery-9b3804a8eca6ce04dd48fbfcc157c8d176a25397.tar.gz jquery-9b3804a8eca6ce04dd48fbfcc157c8d176a25397.zip |
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.
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r-- | test/unit/selector.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index 4e6feaff7..5103d5856 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -205,7 +205,7 @@ test("child and adjacent", function() { }); test("attributes", function() { - expect(34); + expect(35); t( "Attribute Exists", "a[title]", ["google"] ); t( "Attribute Exists", "*[title]", ["google"] ); t( "Attribute Exists", "[title]", ["google"] ); @@ -247,6 +247,7 @@ test("attributes", function() { t( "Attribute Begins With", "a[href ^= 'http://www']", ["google","yahoo"] ); t( "Attribute Ends With", "a[href $= 'org/']", ["mark"] ); t( "Attribute Contains", "a[href *= 'google']", ["google","groups"] ); + t( "Attribute Is Not Equal", "#ap a[hreflang!='en']", ["google","groups","anchor1"] ); t("Select options via :selected", "#select1 option:selected", ["option1a"] ); t("Select options via :selected", "#select2 option:selected", ["option2d"] ); |