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

Tilde (~) attribute selector not working #176

Open
ghost opened this issue Feb 8, 2016 · 0 comments
Open

Tilde (~) attribute selector not working #176

ghost opened this issue Feb 8, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2016

html5qp($html, '[attr~="anything"]');
bug: Selects elements that have the specified attribute containing any value.
expected: Selects elements that have the specified attribute with a value containing a given word, delimited by spaces.

example:
qp($html, '[rel~="icon"]'); should return elements containing something like rel="icon" or rel="value icon" etc...
instead it returns the first element with a rel attribute, which happens to be a stylesheet.

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

0 participants