-
-
Notifications
You must be signed in to change notification settings - Fork 555
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
NthChild with formula does not work #46
Comments
Which version of AngleSharp are you using? I've seen that the nth-child calculation had a bug and fixed one a couple of weeks ago, hence in the latest sources the bug could be gone. Otherwise please provide a MWE such that I can create a unit test and fix the bug. |
This was in version 0.7. I tried the current source code and it works. Sorry for not testing before reporting it. Thanks for developing this library! |
No - thank you for trying it! I am sorry that v0.8 is not yet released, but that will definitely change quite soon. I also plan to do pre-released starting after v0.8 has been released. That just alleviate the problem. Please feel free to report further problems. Such contribution means a lot to me. |
I have another nth-child problem. :) And then do the following operation: Browser (firefox) has no problem with this selector, but AngleSharp does not find anything. |
I will look into it :) |
Obviously this is no selector bug, but rather a bug in the HTML parsing. Has to be fixed. As this is a major bug I will also release a new version on NuGet. |
The issue was found an fixed. Thanks for your report! |
Hi,
I found a bug. When using QuerySelectorAll and using nth-child with calculations, for example tr:nth-child(n+2) it does not work correctly. It returns all children instead of the ones from second node on.
The text was updated successfully, but these errors were encountered: