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

Selector for nodes #209

Open
latot opened this issue Sep 23, 2024 · 3 comments
Open

Selector for nodes #209

latot opened this issue Sep 23, 2024 · 3 comments
Labels
C-feature-request Category: feature request

Comments

@latot
Copy link

latot commented Sep 23, 2024

Hi, actually the select function returns a ElementRef element, which is usually not an issue if we does not have a way to select a Text node, then I found this: https://stackoverflow.com/a/70757577/4652030

For today docs:
https://developer.mozilla.org/en-US/docs/Web/CSS/::target-text
w3c/csswg-drafts#2208

Be able to select Nodes and not just Elements could be a break change for the selector function, or the need of a different one.

This has some issues that are WIP, so I open this just to have this clear.

@LoZack19 LoZack19 added the C-feature-request Category: feature request label Oct 4, 2024
@LoZack19
Copy link
Contributor

LoZack19 commented Oct 4, 2024

So you're asking for a function that returns a Node instead of an ElementRef. What would be the benefit of this?

@latot
Copy link
Author

latot commented Oct 4, 2024

mm, how the actual selector would works, if we select a Text element? Text elements are not ElementRef.

@LoZack19
Copy link
Contributor

LoZack19 commented Oct 5, 2024

Could you show me the kind of syntax that you would like to achieve?

About your question, I would have to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: feature request
Projects
None yet
Development

No branches or pull requests

2 participants