Fixed an issue with :nth-child selectors embedded in :not() filters. Fixes jQuery bug #4156.
This commit is contained in:
parent
a720bb31ab
commit
8533da939d
2 changed files with 22 additions and 21 deletions
|
@ -180,7 +180,7 @@ test("multiple", function() {
|
|||
});
|
||||
|
||||
test("child and adjacent", function() {
|
||||
expect(48);
|
||||
expect(49);
|
||||
t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] );
|
||||
t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] );
|
||||
t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] );
|
||||
|
@ -211,6 +211,7 @@ test("child and adjacent", function() {
|
|||
|
||||
t( "First Child", "p:first-child", ["firstp","sndp"] );
|
||||
t( "Nth Child", "p:nth-child(1)", ["firstp","sndp"] );
|
||||
t( "Not Nth Child", "p:not(:nth-child(1))", ["ap","en","sap","first"] );
|
||||
|
||||
// Verify that the child position isn't being cached improperly
|
||||
jQuery("p:first-child").after("<div></div>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue