Hey there!
#downloads > ul > li:nth-of-type(1) > ul > li:nth-of-type(3) > a
The CSS selector mentioned above works perfectly in FireFox, Chrome, and Safari. Unfortunately, IE 6 does not support the nth-of-type selector. The CSS selectors I am dealing with are generated by Nokogiri and I don't have the option to modify them.
After experimenting, I found a workaround:
#downloads > ul > li:nth(0) > ul > li:nth(2) > a
This involved changing the nth selector to a standard nth and adjusting the values accordingly. I've been attempting to create a JavaScript program that will automatically convert CSS selectors from using nth-of-type to regular nth. So for example, if we were to input:
#downloads > ul > li:nth-of-type(1) > ul > li:nth-of-type(3) > a
It would output:
#downloads > ul > li:nth(0) > ul > li:nth(2) > a
Thanks!
Eef