AngleSharp by AngleSharp

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

 IConstructableElement

Represents a constructable DOM element.

Gets the sequence of associated attributes.

Gets the local part of the qualified name of this element.

Gets the namespace URI of this element.

Gets the namespace prefix of this element.

Gets or sets the source reference of this element.

void AddComment(ref StructHtmlToken token)

Ads a new dom representation of a comment and adds it to the document.

Returns the value of the named attribute on the specified element.

Returns a boolean value indicating whether the specified element has the specified attribute or not.

void SetAttribute(string namespaceUri, StringOrMemory name, StringOrMemory value)

Adds a new attribute or changes the value of an existing attribute on the specified element.

void SetAttributes(StructAttributes tagAttributes)

Sets the node attributes from the struct representation. Usually from html token representation.

Faster way of setting the (known) attribute.

void SetupElement()

Performs an element setup. Usually called after the element has been created and added to the parent.

Creates a shallow copy of the element. Usually used for fixing issues with the DOM during parsing.