t( "Child w/ Class", "p > a.blog", ["mark","simon"] );
t( "All Children", "code > *", ["anchor1","anchor2"] );
t( "All Grandchildren", "p > * > *", ["anchor1","anchor2"] );
- t( "Adjacent", "a + a", ["groups"] );
- t( "Adjacent", "a +a", ["groups"] );
- t( "Adjacent", "a+ a", ["groups"] );
- t( "Adjacent", "a+a", ["groups"] );
+ t( "Adjacent", "#main a + a", ["groups"] );
+ t( "Adjacent", "#main a +a", ["groups"] );
+ t( "Adjacent", "#main a+ a", ["groups"] );
+ t( "Adjacent", "#main a+a", ["groups"] );
t( "Adjacent", "p + p", ["ap","en","sap"] );
t( "Adjacent", "p#firstp + p", ["ap"] );
t( "Adjacent", "p[lang=en] + p", ["sap"] );
t( "Adjacent", "a.GROUPS + code + a", ["mark"] );
- t( "Comma, Child, and Adjacent", "a + a, code > a", ["groups","anchor1","anchor2"] );
+ t( "Comma, Child, and Adjacent", "#main a + a, code > a", ["groups","anchor1","anchor2"] );
t( "Element Preceded By", "p ~ div", ["foo", "moretests","tabindex-tests", "liveHandlerOrder", "siblingTest"] );
t( "Element Preceded By", "#first ~ div", ["moretests","tabindex-tests", "liveHandlerOrder", "siblingTest"] );
t( "Element Preceded By", "#groups ~ a", ["mark"] );
});
test("attributes", function() {
- expect(41);
+ expect(43);
t( "Attribute Exists", "a[title]", ["google"] );
t( "Attribute Exists", "*[title]", ["google"] );
t("Find escaped attribute value", "input[name=foo\\[baz\\]]", ["attrbad2"]);
attrbad.remove();
+
+ //#6428
+ t("Find escaped attribute value", "#form input[name=foo\\[bar\\]]", ["hidden2"]);
+
+ //#3279
+ var div = document.createElement("div");
+ div.innerHTML = "<div id='foo' xml:test='something'></div>";
+
+ deepEqual( jQuery( "[xml\\:test]", div ).get(), [ div.firstChild ], "Finding by attribute with escaped characters." );
});
test("pseudo - child", function() {