Fixed the issue where weird characters were being used in ID selectors. Fixes jQuery bug #3913.

This commit is contained in:
John Resig 2009-02-15 22:46:54 +00:00
parent 22c9c9b9d3
commit f0189d6181
3 changed files with 5 additions and 2 deletions

View file

@ -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() {