broken("Attribute not escaped","input[name=foo.baz]",[]);
broken("Attribute not escaped","input[name=foo[baz]]",[]);
attrbad.remove();
});
});
test("id",function(){
test("id",function(){
expect(28);
expect(29);
t("ID Selector","#body",["body"]);
t("ID Selector","#body",["body"]);
t("ID Selector w/ Element","body#body",["body"]);
t("ID Selector w/ Element","body#body",["body"]);
t("ID Selector w/ Element","ul#first",[]);
t("ID Selector w/ Element","ul#first",[]);
...
@@ -116,6 +135,9 @@ test("id", function() {
...
@@ -116,6 +135,9 @@ test("id", function() {
same(jQuery("body").find("div#form").get(),[],"ID selector within the context of another element");
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");