AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.14.0-alpha-809" />

 SelectorExtensions

public static class SelectorExtensions
A set of extension methods for selectors.
public static bool Match(this ISelector selector, IElement element)

Provides an alternate to Match that sets the scope to the owning document element (if there is one).

public static IHtmlCollection<IElement> MatchAll(this ISelector selector, IEnumerable<IElement> elements, IElement scope)

Returns the elements within the given elements (using depth-first pre-order traversal) that match the selectors with the given scope.

public static IElement MatchAny(this ISelector selector, IEnumerable<IElement> elements, IElement scope)

Returns the first element within the given elements (using depth-first pre-order traversal) that match the selectors with the given scope.