AngleSharp by AngleSharp

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

 HtmlDomBuilder

using AngleSharp.Common; using AngleSharp.Dom; using AngleSharp.Html.Construction; using AngleSharp.Html.Dom; using System; using System.Runtime.CompilerServices; namespace AngleSharp.Html.Parser { [NullableContext(1)] [Nullable(new byte[] { 0, 1, 1 })] internal sealed class HtmlDomBuilder : HtmlDomBuilder<Document, Element> { public HtmlDomBuilder(IHtmlElementConstructionFactory elementFactory, HtmlDocument document, HtmlTokenizerOptions? maybeOptions = default(HtmlTokenizerOptions?), [Nullable(2)] string stopAt = null) : base((IDomConstructionElementFactory<Document, Element>)elementFactory, (Document)document, maybeOptions, true, (stopAt != null) ? ((Func<IConstructableElement, bool>)delegate(IConstructableElement e) { if (e.Prefix.Length == 0) return e.LocalName.Is(stopAt); return false; }) : null) { } } }