isSet(jQuery(".e",div),[div.firstChild],"Finding a second class.");
same(jQuery(".e",div).get(),[div.firstChild],"Finding a second class.");
div.lastChild.className="e";
div.lastChild.className="e";
isSet(jQuery(".e",div),[div.firstChild,div.lastChild],"Finding a modified class.");
same(jQuery(".e",div).get(),[div.firstChild,div.lastChild],"Finding a modified class.");
});
});
test("name",function(){
test("name",function(){
...
@@ -160,8 +160,8 @@ test("name", function() {
...
@@ -160,8 +160,8 @@ test("name", function() {
t("Name selector for grouped input","input[name='types[]']",["types_all","types_anime","types_movie"])
t("Name selector for grouped input","input[name='types[]']",["types_all","types_anime","types_movie"])
isSet(jQuery("#form").find("input[name=action]"),q("text1"),"Name selector within the context of another element");
same(jQuery("#form").find("input[name=action]").get(),q("text1"),"Name selector within the context of another element");
isSet(jQuery("#form").find("input[name='foo[bar]']"),q("hidden2"),"Name selector for grouped form element within the context of another element");
same(jQuery("#form").find("input[name='foo[bar]']").get(),q("hidden2"),"Name selector for grouped form element within the context of another element");