AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.3.0" />

.NET API 960,512 bytes

 CollectionExtensions

public static class CollectionExtensions
A bunch of methods for getting DOM elements on some internal collections.
public static bool Accepts(this FilterSettings filter, INode node)

Determines if the current filter settings include the provided node.

public static IElement GetElementById(this INodeList children, string id)

Gets an element by its ID.

public static T GetElementById<T>(this IEnumerable<T> elements, string id) where T : IElement

Gets the element with the provided id, if any. Otherwise the element with the same name is searched.

public static void GetElementsByName(this INodeList children, string name, List<IElement> result)

Gets a list of HTML elements given by their name attribute.

public static IEnumerable<T> GetNodes<T>(this INode parent, bool deep = true, Func<T, bool> predicate = null) where T : INode

Gets the descendants from the provided parent that fulfill the specified predicate, if any.