jQuery nth-of-type not working in IE7 or 8
<p>I have implemented some jQuery to fake nth-of-type in IE7 and 8 using the following code:</p>

<pre><code>$.expr[':']['nth-of-type'] = function(elem, i, match) {
    var parts = match[3].split("+");
    return (i + 1 - (parts[1] || 0)) % parseInt(parts[0], 10) === 0;
};
$("div&gt;section.subcontent:nth-of-type(3)").addClass('nth-three');
$("div&gt;section.subcontent:nth-of-type(4)").addClass('nth-four');
</code></pre>

<p>However it only works in Chrome and other browsers... Any ideas why? As the point of the JS is to rely on JS where CSS fails in IE compatibility.</p>

<p>Thanks</p>
