hi,my ide is vs2017,netcore 2.1,c#7.3
when i run this code,it throw a exception
Console.WriteLine($"{itt.QuerySelectorAll("img.img[width]")?.Count()}"); Console.WriteLine($"{itt.QuerySelectorAll("img.img[height]")?.Count()}"); Console.WriteLine($"{itt.QuerySelectorAll("img.img[width][height]")?.Count()}");
output is
3
3
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable1 source) at HtmlAgilityPack.CssSelectors.NetCore.Token..ctor(String word) at HtmlAgilityPack.CssSelectors.NetCore.Token.<>c.<.ctor>b__8_0(String i) at System.Linq.Enumerable.SelectListPartitionIterator2.ToList()
at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at HtmlAgilityPack.CssSelectors.NetCore.Token..ctor(String word) at HtmlAgilityPack.CssSelectors.NetCore.Tokenizer.GetTokens(String cssFilter)+MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator2.ToList()
at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at HtmlAgilityPack.CssSelectors.NetCore.HapCssExtensionMethods.QuerySelectorAll(IEnumerable1 nodes, String cssSelector)
it seems not support css [][]
hi,my ide is vs2017,netcore 2.1,c#7.3 when i run this code,it throw a exception
Console.WriteLine($"{itt.QuerySelectorAll("img.img[width]")?.Count()}"); Console.WriteLine($"{itt.QuerySelectorAll("img.img[height]")?.Count()}"); Console.WriteLine($"{itt.QuerySelectorAll("img.img[width][height]")?.Count()}");
output is 3 3 System.InvalidOperationException: Sequence contains no elements at System.Linq.Enumerable.First[TSource](IEnumerable1 source) at HtmlAgilityPack.CssSelectors.NetCore.Token..ctor(String word) at HtmlAgilityPack.CssSelectors.NetCore.Token.<>c.<.ctor>b__8_0(String i) at System.Linq.Enumerable.SelectListPartitionIterator
2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at HtmlAgilityPack.CssSelectors.NetCore.Token..ctor(String word) at HtmlAgilityPack.CssSelectors.NetCore.Tokenizer.GetTokens(String cssFilter)+MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator
2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at HtmlAgilityPack.CssSelectors.NetCore.HapCssExtensionMethods.QuerySelectorAll(IEnumerable
1 nodes, String cssSelector) it seems not support css [][]