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

Starts with attribute selector doesn't work: [attribute^=value] #210

Open
cuzzo opened this issue Sep 3, 2016 · 0 comments
Open

Starts with attribute selector doesn't work: [attribute^=value] #210

cuzzo opened this issue Sep 3, 2016 · 0 comments

Comments

@cuzzo
Copy link

cuzzo commented Sep 3, 2016

Subject of the issue

I don't appear able to select attributes using the starts with selector: [attribute^="value"]. I'm able to select the elements just fine if I use a much more brittle selector, so it doesn't appear to be an issue with the request.

Your environment

node version: v4.2.6
npm version: 3.5.2

Steps to reproduce

var x = require("x-ray")();
x(
"https://www.goodreads.com/work/shelves/21500681", {
genres: "[href^="/genres"]"
}
)
.limit(1)
.write("genres.json");

Expected behaviour

I would exepct to get a list of all genres on the page, similar to the results of this selector: [".shelfStat a"]

Actual behaviour

I get an empty array.

@cuzzo cuzzo changed the title Starts with attribute selector Starts with attribute selector doesn't work: [attribute^=value] Sep 3, 2016
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