padolsey/satisfy

will you support something like this: '>td:nth-child(3)'?

Opened this issue · 1 comments

'>td:nth-child(3)'
This tool is great!

I'm thinking if we can support 'nth-child'?

e.g.

'>td:nth-child(3)'
should generate:
<td></td><td></td><td></td>

and
'>td:nth-child(3)[innerHTML="xx"]'
should generate:
<td></td><td></td><td>xx</td>

and
'>td[innerHTML="xx"]:nth-child(3)'
should generate
<td>xx</td><td>xx</td><td>xx</td>

perhaps instead of nth-child (which is normally used for selecting in sequences) you use a double asterix ** as in td ** 3 generates three td elements or at least some other symbol as nth-child is confusing.