Table of Contents

Interface IAttr

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

This type represents a DOM element's attribute as an object.

[DomName("Attr")]
public interface IAttr : INode, IEventTarget, IMarkupFormattable, IEquatable<IAttr>
Inherited Members
Extension Methods

Properties

IsSpecified

Gets always true.

[DomName("specified")]
bool IsSpecified { get; }

Property Value

bool

LocalName

Gets the local name of the attribute.

[DomName("localName")]
string LocalName { get; }

Property Value

string

Name

Gets the attribute's name.

[DomName("name")]
string Name { get; }

Property Value

string

NamespaceUri

Gets the namespace URL of the attribute.

[DomName("namespaceURI")]
string? NamespaceUri { get; }

Property Value

string

OwnerElement

Gets the owning element, if any.

[DomName("ownerElement")]
IElement? OwnerElement { get; }

Property Value

IElement

Prefix

Gets the prefix used by the namespace.

[DomName("prefix")]
string? Prefix { get; }

Property Value

string

Value

Gets the attribute's value.

[DomName("value")]
string Value { get; set; }

Property Value

string