AngleSharp by Florian Rappl

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

 ElementExtensions

static class ElementExtensions
Useful methods for element objects.
public static ResourceRequest CreateRequestFor(this IElement element, Url url)

Creates a new resource request from the provided element for the given url.

public static string GetCssNamespace(this IElement el, string prefix)

Gets the CSS namespace that is defined via the provided prefix.

public static bool IsActive(this IElement element)

Checks if the element is currently active.

public static bool IsChecked(this IElement element)

Checks if the element is currently checked.

public static bool IsDefault(this IElement element)

Checks if the element is an input element that is currently in its default state.

public static bool IsDisabled(this IElement element)

Checks if the element is currently disabled.

public static bool IsEditable(this IElement element)

Checks if the element is editable.

public static bool IsEnabled(this IElement element)

Checks if the element is currently enabled.

public static bool IsFirstChild(this IElement element)

Checks if the element is its parent's first child.

public static bool IsFirstOfType(this IElement element)

Checks if the element is the first of its type among the parent's children.

public static bool IsHovered(this IElement element)

Checks if the element is currently hovered.

public static bool IsIndeterminate(this IElement element)

Checks if the element is currently in its indeterminate state.

public static bool IsInRange(this IElement element)

Checks if the element's value is within the range.

public static bool IsInvalid(this IElement element)

Checks if the element does not validate.

public static bool IsLastChild(this IElement element)

Checks if the element is its parent's last child.

public static bool IsLastOfType(this IElement element)

Checks if the element is the last of its type among the parent's children.

public static bool IsLink(this IElement element)

Checks if the element is a link.

public static bool IsOnlyChild(this IElement element)

Checks if the element is its parent's only child.

public static bool IsOnlyOfType(this IElement element)

Checks if the element is the only of its type among the parent's children.

public static bool IsOptional(this IElement element)

Checks if the element is only optional and not required.

public static bool IsOutOfRange(this IElement element)

Checks if the element's value is out-of-range.

public static bool IsPlaceholderShown(this IElement element)

Checks if the element is currently showing a placeholder.

public static bool IsPseudo(this IElement element, string name)

Checks if the element is a pseudo element (before or after).

public static bool IsReadOnly(this IElement element)

Checks if the element is readonly.

public static bool IsRequired(this IElement element)

Checks if the element is required and must be filled out.

public static bool IsTarget(this IElement element)

Checks if the element is currently targeted.

public static bool IsUnchecked(this IElement element)

Checks if the element is currently unchecked.

public static bool IsValid(this IElement element)

Checks if the element does validate.

public static bool IsVisited(this IElement element)

Checks if the element has already been visited.

public static string LocateNamespace(this IElement element, string prefix)

Locates the namespace of the given prefix.

public static string LocatePrefix(this IElement element, string namespaceUri)

Locates the prefix of the given namespace.

public static bool MatchesCssNamespace(this IElement el, string prefix)

Checks if the element with the provided prefix matches the CSS namespace.