AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.3.0-beta.477" />

 IDomConstructionElementFactory<TDocument, TElement>

public interface IDomConstructionElementFactory<TDocument, TElement> where TDocument : IConstructableDocument where TElement : IConstructableElement
Represents a factory for creating DOM during parsing of HTML.
TElement Create(TDocument document, StringOrMemory localName, StringOrMemory prefix = default, NodeFlags flags = 0)

Creates a new element with the given name, prefix and flags and sets the owner document.

TDocument CreateDocument(TextSource source, IBrowsingContext context = null)

Creates a new document to hold parsed DOM

IConstructableNode CreateDocumentType(TDocument document, StringOrMemory name, StringOrMemory publicIdentifier, StringOrMemory systemIdentifier)

Creates a specialized doctype element

creates a specialized form element

Creates a specialized frame element

IConstructableMathElement CreateMath(TDocument document, StringOrMemory name = default)

Creates a specialized math element

Creates a specialized meta element

TElement CreateNoScript(TDocument document, bool scripting)

Creates a specialized no script element.

IConstructableScriptElement CreateScript(TDocument document, bool parserInserted, bool started)

Creates a specialized script element

IConstructableSvgElement CreateSvg(TDocument document, StringOrMemory name = default)

Creates a specialized svg element

Creates a specialized template element

TElement CreateUnknown(TDocument document, StringOrMemory tagName)

Creates an unknown element