npm-dom / domquery

jQuery-like handy DOM manipulation library composed from small modules in NPM.
http://npm.im/domquery
83 stars 8 forks source link

.parent/.parents #1

Open max-mapper opened 10 years ago

max-mapper commented 10 years ago

we can use https://www.npmjs.org/package/findup-element by @hughsk for this!

max-mapper commented 10 years ago

hmm actually I just realized that findup-element doesnt support css selectors, so it'd need to get something like https://github.com/conradz/chi-matches added to it, or there are some other modules like https://github.com/ForbesLindesay/closest

azer commented 10 years ago

just added .parent (but forgot to alias .parents) also siblings and corrected the .select method; https://github.com/npm-dom/domquery/commit/78acffa983da9f2e134cdbb2c8ea0d62dfe08a6a

and updated the doc; https://github.com/npm-dom/domquery#selecting