AngleSharp by AngleSharp

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

.NET API 1,223,680 bytes

 IElement

The Element interface represents an object within a DOM document.
using AngleSharp.Attributes; using AngleSharp.Dom.Css; namespace AngleSharp.Dom { [DomName("Element")] public interface IElement : INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle { [DomName("prefix")] string Prefix { get; } [DomName("localName")] string LocalName { get; } [DomName("namespaceURI")] string NamespaceUri { get; } [DomName("attributes")] INamedNodeMap Attributes { get; } [DomName("classList")] ITokenList ClassList { get; } [DomName("className")] string ClassName { get; set; } [DomName("id")] string Id { get; set; } [DomName("innerHTML")] string InnerHtml { get; set; } [DomName("outerHTML")] string OuterHtml { get; set; } [DomName("tagName")] string TagName { get; } [DomName("assignedSlot")] IElement AssignedSlot { get; } [DomName("slot")] string Slot { get; set; } [DomName("shadowRoot")] IShadowRoot ShadowRoot { get; } bool IsFocused { get; } [DomName("insertAdjacentHTML")] void Insert(AdjacentPosition position, string html); [DomName("hasAttribute")] bool HasAttribute(string name); [DomName("hasAttributeNS")] bool HasAttribute(string namespaceUri, string localName); [DomName("getAttribute")] string GetAttribute(string name); [DomName("getAttributeNS")] string GetAttribute(string namespaceUri, string localName); [DomName("setAttribute")] void SetAttribute(string name, string value); [DomName("setAttributeNS")] void SetAttribute(string namespaceUri, string name, string value); [DomName("removeAttribute")] bool RemoveAttribute(string name); [DomName("removeAttributeNS")] bool RemoveAttribute(string namespaceUri, string localName); [DomName("getElementsByClassName")] IHtmlCollection<IElement> GetElementsByClassName(string classNames); [DomName("getElementsByTagName")] IHtmlCollection<IElement> GetElementsByTagName(string tagName); [DomName("getElementsByTagNameNS")] IHtmlCollection<IElement> GetElementsByTagNameNS(string namespaceUri, string tagName); [DomName("matches")] bool Matches(string selectors); [DomName("pseudo")] IPseudoElement Pseudo(string pseudoElement); [DomName("attachShadow")] [DomInitDict(0, false)] IShadowRoot AttachShadow(ShadowRootMode mode = ShadowRootMode.Open); } }