Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursively find/filter elements in the "dom" #113

Open
mikemfleming opened this issue Oct 3, 2019 · 1 comment
Open

Recursively find/filter elements in the "dom" #113

mikemfleming opened this issue Oct 3, 2019 · 1 comment

Comments

@mikemfleming
Copy link

mikemfleming commented Oct 3, 2019

This is something that we have had to implement ourselves but I could see it being useful as an out of the box feature for Himalaya.

If you think of the return value of Himalaya parsing/stringifying, it represents the dom. Only the dom has built in query selectors. This would just add a util that accepts a callback and queries the return value. Much like Array.prototype.filter.

Thoughts @andrejewski @xdumaine ?

@tangert
Copy link

tangert commented Mar 9, 2020

I feel like the point of this library is to keep it lightweight and any actual scraping / selection should be left to the user. One option might be to have extensions like himalaya-select that could include selection functions. Currently working on something like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants