diff options
author | John Resig <jeresig@gmail.com> | 2009-02-15 22:46:54 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-02-15 22:46:54 +0000 |
commit | f0189d618181409ac628b9bbdecd77338127b9b1 (patch) | |
tree | 23ac65d7aae34fc5910be5774fb1629a4d168525 /test/unit/selector.js | |
parent | 22c9c9b9d31933a3615892a3796f5d9d75bac104 (diff) | |
download | jquery-f0189d618181409ac628b9bbdecd77338127b9b1.tar.gz jquery-f0189d618181409ac628b9bbdecd77338127b9b1.zip |
Fixed the issue where weird characters were being used in ID selectors. Fixes jQuery bug #3913.
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r-- | test/unit/selector.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index 419116e6d..341d59b9e 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -69,7 +69,7 @@ test("broken", function() { }); test("id", function() { - expect(27); + expect(28); t( "ID Selector", "#body", ["body"] ); t( "ID Selector w/ Element", "body#body", ["body"] ); t( "ID Selector w/ Element", "ul#first", [] ); @@ -105,6 +105,8 @@ test("id", function() { t( "Underscore ID", "#types_all", ["types_all"] ); t( "Dash ID", "#fx-queue", ["fx-queue"] ); + + t( "ID with weird characters in it", "#name\\+value", ["name+value"] ); }); test("class", function() { |