AngleSharp by Florian Rappl

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

 DocumentFragment

Represents a document fragment.
public DocumentFragment Append(Node[] nodes)

Appends nodes to current document fragment.

public HTMLCollection GetElementsByClassName(string classNames)

Returns a set of elements which have all the given class names.

public HTMLCollection GetElementsByTagName(string tagName)

Returns a NodeList of elements with the given tag name. The complete document is searched, including the root node.

public HTMLCollection GetElementsByTagNameNS(string namespaceURI, string tagName)

Returns a list of elements with the given tag name belonging to the given namespace. The complete document is searched, including the root node.

public DocumentFragment Prepend(Node[] nodes)

Prepends nodes to the current document fragment.

public Element QuerySelector(string selectors)

Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.

public HTMLCollection QuerySelectorAll(string selectors)

Returns a list of the elements within the document (using depth-first pre-order traversal of the document's nodes) that match the specified group of selectors.