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

Feature Request: XPath selectors #94

Open
liveresume opened this issue Feb 25, 2017 · 4 comments
Open

Feature Request: XPath selectors #94

liveresume opened this issue Feb 25, 2017 · 4 comments
Labels

Comments

@liveresume
Copy link

It would be great to support XPath selectors.

Looks like https://github.com/expelledboy/exml gives us a head start.

What are your thoughts?

@philss philss added the Feature label Mar 1, 2017
@philss
Copy link
Owner

philss commented Mar 2, 2017

Hi @liveresume!

TLDR: I think it's a good idea, but I prefer to have a separated lib/package for it.

I want to have xPath selectors, but I'm not sure if in this project or somewhere else that can be pluggable (like a floki-xpath project). This is because I want to keep the API as simple as possible.
There is also another point that is implicit today: I'm only supporting HTML in Floki. With xpath we would have a bit of XML in the project. I'm not sure if I want to support that too.

Thank you! I will leave this open and think more about. If you have suggestions, please leave comments here.

@ghalestrilo
Copy link

ghalestrilo commented Dec 13, 2023

@philss this one's still open - can I ask what the plan is around support for this feature?
Does a separate repo exist, will it be added to floki or discarded altogether?

@philss
Copy link
Owner

philss commented Dec 18, 2023

Does a separate repo exist, will it be added to floki or discarded altogether?

@ghalestrilo not, I don't think there is something out there.
But I wish someone could implement this. It could be inside Floki, having a good API that separates from the default CSS selectors.

@ghalestrilo
Copy link

NIce. Happy to take a look once I have some time

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

No branches or pull requests

3 participants