AngleSharp by AngleSharp

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

 HtmlDomBuilder

sealed class HtmlDomBuilder
Represents the Tree construction as specified in 8.2.5 Tree construction, on the following page: http://www.w3.org/html/wg/drafts/html/master/syntax.html
public Element AdjustedCurrentNode { get; }

Gets the adjusted current node.

public Element CurrentNode { get; }

Gets the current node.

public bool IsFragmentCase { get; }

Gets if the tree builder has been created for parsing fragments.

public HtmlDomBuilder(HtmlDocument document)

Creates a new instance of the HTML parser with the specified document based on the given source manager.

Parses the given source and creates the document.

Parses the given source asynchronously and creates the document.

Switches to the fragment algorithm with the specified context element. Then parses the given source and creates the document.