AngleSharp by AngleSharp

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

.NET API 960,512 bytes

 Element

Represents an element node.
public IElement AssignedSlot { get; }

public int ChildElementCount { get; }

public ITokenList ClassList { get; }

public string ClassName { get; set; }

public IElement FirstElementChild { get; }

public string GivenNamespaceUri { get; }

public string Id { get; set; }

public string InnerHtml { get; set; }

public bool IsFocused { get; protected set; }

public IElement LastElementChild { get; }

public string LocalName { get; }

public string NamespaceUri { get; }

public IElement NextElementSibling { get; }

public string OuterHtml { get; set; }

public string Prefix { get; }

public IShadowRoot ShadowRoot { get; }

public string Slot { get; set; }

public ISourceReference SourceReference { get; set; }

public string TagName { get; }

public Element(Document owner, string localName, string prefix, string namespaceUri, NodeFlags flags = 0)

public Element(Document owner, string name, string localName, string prefix, string namespaceUri, NodeFlags flags = 0)

public void AddAttribute(Attr attr)

Adds an attribute.

public void After(INode[] nodes)

public void Append(INode[] nodes)

public void Before(INode[] nodes)

protected void CloneElement(Element element, Document owner, bool deep)

public IElement Closest(string selectorText)

public string GetAttribute(string name)

public string GetAttribute(string namespaceUri, string localName)

public IHtmlCollection<IElement> GetElementsByClassName(string classNames)

public IHtmlCollection<IElement> GetElementsByTagNameNS(string namespaceURI, string tagName)

public bool HasAttribute(string name)

public bool HasAttribute(StringOrMemory name)

public bool HasAttribute(string namespaceUri, string localName)

public void Insert(AdjacentPosition position, string html)

public bool Matches(string selectorText)

public abstract IElement ParseSubtree(string source)

Takes a given string source and parses it into a subtree using the current element as context. Follows the fragment parsing strategy for the given namespace.

public void Prepend(INode[] nodes)

public IElement QuerySelector(string selectors)

public IHtmlCollection<IElement> QuerySelectorAll(string selectors)

public void Remove()

public bool RemoveAttribute(string name)

public bool RemoveAttribute(string namespaceUri, string localName)

public void Replace(INode[] nodes)

public void SetAttribute(string name, string value)

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

protected void UpdateAttribute(string name, string value)