Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

the result don't matches the selector string. #26

conanca opened this Issue Nov 12, 2013 · 2 comments


None yet
2 participants

conanca commented Nov 12, 2013



< img src="assets/images/gallery/thumb-1.jpg" alt="150x150"/> is ok
< img alt="150x150" src="assets/images/gallery/thumb-1.jpg" /> will not match

mna added a commit that referenced this issue Nov 12, 2013


mna commented Nov 12, 2013


I created a test to try to reproduce the issue (see TestIssue26 in traversal_test.go, last one). I run the Find() call for each img tag individually, and both in the same source, and it all works. The problem may be because of the space between the opening bracket and the tag name, but when I tried this, it failed in all cases, not one out of 2.

Can you reproduce it on your setup, with the provided test? If not, can you give me a minimal test case to reproduce the bug? And you may want to make sure you are on the latest versions of goquery, Cascadia (the selector library) and the go.net subrepo.


conanca commented Nov 13, 2013

Sorry,something wrong in my code,sorry.

@conanca conanca closed this Nov 13, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment