AngleSharp by Florian Rappl

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

 HtmlParserExtensions

static class HtmlParserExtensions
public static void AddComment(this Node parent, string data)

Appends a comment node to the specified node.

public static void AddFormatting(this List<Element> formatting, Element element)

Adds an element to the list of active formatting elements.

public static void AddScopeMarker(this List<Element> formatting)

Inserts a scope marker at the end of the list of active formatting elements.

public static void ClearFormatting(this List<Element> formatting)

Clear the list of active formatting elements up to the last marker.

public static bool IsTableElement(this INode node)

Examines if the given element is one of the table elements (table, tbody, tfoot, thead, tr).

public static void SetAttributes(this Element element, List<KeyValuePair<string, string>> attributes)

Checks for each attribute on the token if the attribute is already present on the node. If it is not, the attribute and its corresponding value is added to the node.