santiycr / cssify

XPATH to CSS translator
MIT License
132 stars 45 forks source link

Problem with "nth" selector #1

Closed bonnefoi closed 13 years ago

bonnefoi commented 13 years ago

Hello,

I've got some problem with your translator when it translates something like "table[3]" into "table:nth(3)". Could you modify your source to change the keyword "nth" to "nth-of-type" ?

Thank you for your support, Pierre-François Bonnefoi.

santiycr commented 13 years ago

Just fixed in and tested. You can check out 45d51ef6feb5973b41a2 Thanks!

daluu commented 12 years ago

Is nth-of-type(x) really the ideal choice or something else like nth-child(x)? Had some issues using CSS locators with nth-of-type in IE, not sure about Firefox, I forget.