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

Attribute selector fails on suffix selector (dollar sign) #602

Open
Jesmaster opened this issue Jan 8, 2025 · 0 comments
Open

Attribute selector fails on suffix selector (dollar sign) #602

Jesmaster opened this issue Jan 8, 2025 · 0 comments

Comments

@Jesmaster
Copy link
Contributor

Jesmaster commented Jan 8, 2025

I'm trying to select all divs with an id ending in something. When I try the [$=] syntax I'm getting an Error: Unexpected value: = error message. The starting with selector [^=] works fine. Below is a simple example.

<script src="https://unpkg.com/[email protected]"></script>
<div _="init get <div[id$='ending-with']/> log its innerHTML">
  <div id="test-ending-with">Test</div>
  <div id="test-2-ending-with">Test</div>
</div>
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

1 participant