equals(jQuery("#tName1")[0].id,'tName1',"ID selector with same value for a name attribute");
equals(jQuery("#tName2").length,0,"ID selector non-existing but name attribute on an A tag");
a.remove();
t("ID Selector on Form with an input that has a name of 'id'","#lengthtest",["lengthtest"]);
t("ID selector with non-existant ancestor","#asdfasdf #foobar",[]);// bug #986
same(jQuery("body").find("div#form").get(),[],"ID selector within the context of another element");
//#7533
equal(jQuery("<div id=\"A'B~C.D[E]\"><p>foo</p></div>").find("p").length,1,"Find where context root is a node and has an ID with CSS3 meta characters");
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"]);
t("Name selector for grouped input","input[name='types[]']",["types_all","types_anime","types_movie"])
same(jQuery("#form").find("input[name=action]").get(),q("text1"),"Name selector 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");
t("Is Not Visible",'#nothiddendivchild:hidden',[]);
$div.remove();
});
}
test("pseudo - form",function(){
expect(8);
t("Form element :input","#form :input",["text1","text2","radio1","radio2","check1","check2","hidden1","hidden2","name","search","button","area1","select1","select2","select3","select4","select5"]);
t("Form element :radio","#form :radio",["radio1","radio2"]);
t("Form element :checkbox","#form :checkbox",["check1","check2"]);
t("Form element :text","#form :text:not(#search)",["text1","text2","hidden2","name"]);
t("Form element :radio:checked","#form :radio:checked",["radio2"]);
t("Form element :checkbox:checked","#form :checkbox:checked",["check1"]);
t("Form element :radio:checked, :checkbox:checked","#form :radio:checked, #form :checkbox:checked",["radio2","check1"]);