keithclark / selectivizr

selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.
1.71k stars 247 forks source link

nth-child() works for IE7, 9, and 10, but not 8 #45

Closed corysimmons closed 8 years ago

corysimmons commented 11 years ago

Anyone else have this problem?

hartwm commented 11 years ago

yep... any help? tried compatibility tags, older jquery versions, dtd, nothing seems to work

dottodot commented 11 years ago

I just can't nth-child to work

Using this

.row .col:nth-child(4n+1)

only the first child is selected

joshbtn commented 11 years ago

Seeing the same thing in IE10 when in IE7 Browser/Document Mode w/ jQuery 1.8.2.

It's adding the class to the first child, 5th, 9th ...

Update I found this, but i'm still seeing the same issue. This fixed a few other problems however. https://github.com/keithclark/JQuery-Extended-Selectors

Update Turns out jQuery doesn't handle :nth-child(4n+1) In the way i was expecting.

chrispropane commented 10 years ago

+1

noname01 commented 10 years ago

same problem