Side navigation
#3633 closed bug (invalid)
Opened November 21, 2008 04:56PM UTC
Closed November 25, 2008 11:42AM UTC
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 (1)
Changed November 25, 2008 11:42AM UTC by comment:1
cc: | → dottedt |
---|---|
resolution: | → invalid |
status: | new → closed |
Divs cannot be children of ol/ul's. Only li's.
That's invalid HTML.