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
nth-child selector not working as expected #550
Comments
|
Using the immediate children operator works:
and I believe that Floki is actually correct. So... is Chrome wrong? |
Can you double check if this is the actual HTML the browser is receiving?
Putting this HTML in the browser and running the queries above gives the same results in Floki, Firefox and Chrome. |
Unfortunately yes the HTML is from an actual site, and it is horrible. |
I guess a case could be made for not supporting poorly written markup |
Yes I noted that above #550 (comment) |
Flok: v0.36.0
I ran into an unexpected behavior when using
nth-child
selector today:this reesults in:
however in the browser if I do a similar selector on the same fragment:
results correctly in:
I realize Floki is using Mochi under the hood. But before I go too far down the rabbit hole I wanted to validate if this behavior is expected for Floki or not? If not I will continue to dig and isolate where the issue is.
The text was updated successfully, but these errors were encountered: