ded / bonzo

library agnostic, extensible DOM utility
Other
1.32k stars 137 forks source link

Selector for `children()` and `siblings()` #79

Closed jonathanong closed 12 years ago

jonathanong commented 12 years ago

Do you guys have any plans to allow the children() and siblings() methods allow a selector argument for filtering? Also, a filter() method would be nice as well.

ded commented 12 years ago

this sounds ripe for a traversty addition cc @rvagg.

rvagg commented 12 years ago

aye, I was just mulling this over this morning. I have tickets open for children(), siblings() and parents() using the same ([selector = "*"[, index = 0]]) argument syntax. I need to do something about them soon.

filter() is a new one on me but may be logical to put into the Qwery bridge? @amccollum has $(x).matching(y) as part of his bridge for Sel which I believe would be roughly the equivalent.