Table of Contents

Interface IElementFactory<TDocument, TElement>

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

Represents an element factory.

public interface IElementFactory<TDocument, TElement> where TDocument : IDocument where TElement : IElement

Type Parameters

TDocument

The type of root document.

TElement

The common type of elements to create.

Extension Methods

Methods

Create(TDocument, string, string?, NodeFlags)

Creates a new element with the given local name and optional prefix.

TElement Create(TDocument document, string localName, string? prefix = null, NodeFlags flags = NodeFlags.None)

Parameters

document TDocument

The owner of the element.

localName string

The local name of the element.

prefix string

The optional prefix of the element.

flags NodeFlags

The optional flags for the node.

Returns

TElement

The created document's child element.