Opened 14 years ago
Closed 14 years ago
#3633 closed bug (invalid)
nth-child unexpectedly counts a div as a child.
Reported by: | dottedt | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | selector | Version: | 1.2.6 |
Keywords: | Cc: | dottedt | |
Blocked by: | Blocking: |
Description
When counting the childrenof an ol/ul the nth-child selector will count a div if a div is the child of the ol/ul, not the first child, and previous sibling is a li. This appears to only happen when counting li's such as li:nth-child(4n+1). The number is not relevant.
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | test-case.html added |
---|
comment:1 Changed 14 years ago by
Cc: | dottedt added |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Divs cannot be children of ol/ul's. Only li's. That's invalid HTML.
Note: See
TracTickets for help on using
tickets.
test case