StyleCollectionExtensions.SortBySpecificity does not account for null selector. #52
Closed
4 of 5 tasks
Labels
Milestone
Bug Report
I have observed instances where ICssStyleRule.Selector is null. This causes StyleCollectionExtensions.SortBySpecificity to throw a null reference exception.
Prerequisites
AngleSharp.Css
for CSS support)For more information, see the
CONTRIBUTING
guide.Possible Solution
I unfortunately dont have the raw HTML that caused this issue but i have confirmed the following change does fix the issue.
Would you accept a PR for this solution?
The text was updated successfully, but these errors were encountered: