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

Selecting parents #592

Open
glyh opened this issue Oct 1, 2024 · 0 comments
Open

Selecting parents #592

glyh opened this issue Oct 1, 2024 · 0 comments
Labels

Comments

@glyh
Copy link

glyh commented Oct 1, 2024

Feature goal

When I encounter some webpage like this:

<x><y>hey</y> wat</x>

I want to select the tag x, and get the text " wat". The characteristic for this tag is that it's a parent of some other tag containing text "hey".

There doesn't seem to be one help me to do so. For now I just use "E:nth-of-type" to find it by index, but this seems fragile as once the element moves this will break.

Dependencies

None

@glyh glyh added the Feature label Oct 1, 2024
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

1 participant