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

QuerySelectorAll not locating elements that can be found with document.querySelectorAll('') #81

Open
JaxonBest opened this issue Jul 8, 2022 · 1 comment

Comments

@JaxonBest
Copy link

Hello, I started using Fizzler yesterday and all was fine until I was trying to select multiple elements using a long query selector and Fizzler wasn't able to locate the elements I was expecting. Just to make sure I didn't create an invalid selector I used the chrome dev tools and used the document.querySelectorAll() function and it returned a full list of all the elements as expected.

The Query Selector I was using is the following: .fotorama__nav__shaft>.fotorama__nav__frame--thumb>.fotorama__thumb>img.
Chrome returned 5 results all img tags. While Fizzler returned 0.

Am I doing something incorrectly or is this a somehow a bug?

@atifaziz
Copy link
Owner

atifaziz commented Jul 9, 2022

I am guessing you are using Fizzler.Systems.HtmlAgilityPack? If so, that depends on HtmlAgilityPack (1.5.1) so we'd first have to first determine whether the bug exists in the former or the later. You see, if HtmlAgilityPack parses the HTML incorrectly then the selector may not find the nodes at the right places. A quick test would be to reference the latest version of HtmlAgilityPack and see if the bug still persists or not.

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

2 participants