#4158 closed bug (fixed)
multiple pseudo selector issues
Reported by: | initjh | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3.2 |
Component: | selector | Version: | 1.3.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
:not(:nth-child(1))
See http://dev.jquery.com/ticket/4169 for: :has(:nth-child(1))
Attachments (2)
Change History (11)
Changed 14 years ago by
Attachment: | test2.html added |
---|
comment:1 follow-up: 2 Changed 14 years ago by
Seems I made a slight mistake, it only fails on :not(nth-child(1)). Sorry.
comment:2 Changed 14 years ago by
Replying to initjh:
Seems I made a slight mistake, it only fails on :not(:nth-child(1)). Sorry.
Sorry, misread debugger. It does fail on :has(:nth-child(1)).
comment:4 Changed 14 years ago by
Actually, that's a different problem. You should make a new ticket for that. I noticed that while testing on Chrome. The selector is processed in Chrome, but it selects the parent like you have shown.
This one is (I think) related to some RegEx problems in Sizzle, when you put :nth-child in :not or :has. Another example, :not(:not(:not(div))).
comment:5 Changed 14 years ago by
Simplified test case, thanks for the test case site dz. http://jquery.nodnod.net/cases/124
comment:6 Changed 14 years ago by
I found a way to make it behave properly: On the first iteration in Sizzle.filter, have it process PSEUDO type first instead of CHILD. It will then properly parse the :nth-child selector, and apply :not to it as expected.
comment:7 Changed 14 years ago by
Changed 14 years ago by
Attachment: | 4156.patch added |
---|
comment:8 Changed 14 years ago by
Component: | core → selector |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed in SVN rev [6212].
comment:9 Changed 14 years ago by
Description: | modified (diff) |
---|
Test Case 1