egonSchiele / HandsomeSoup

Easy HTML parsing for Haskell
http://egonschiele.github.com/HandsomeSoup
BSD 3-Clause "New" or "Revised" License
124 stars 20 forks source link

Add nth-child selector #14

Closed ts-smith closed 10 years ago

ts-smith commented 11 years ago

Works in the same capacity that "first-child" does, in that it can't be used anywhere but as the root search. ie. css "p:first-child" not css "body p:first-child"

Syntax is intuitive, though. css "p:nth-child(12)"

egonSchiele commented 10 years ago

Thanks!