AngleSharp by AngleSharp

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

.NET API 960,512 bytes

 Node

Represents a node in the generated tree.
public string BaseUri { get; }

public Url BaseUrl { get; set; }

public NodeFlags Flags { get; }

public bool HasChildNodes { get; }

public string NodeName { get; }

public NodeType NodeType { get; }

public virtual string NodeValue { get; set; }

public IElement ParentElement { get; }

public virtual string TextContent { get; set; }

public Node(Document owner, string name, NodeType type = 1, NodeFlags flags = 0)

protected static void GetPrefixAndLocalName(string qualifiedName, ref string namespaceUri, out string prefix, out string localName)

For more information, see: https://dom.spec.whatwg.org/#validate-and-extract

protected static bool IsNamespaceError(string prefix, string namespaceUri, string qualifiedName)

public void AddNode(Node node)

public INode AppendChild(INode child)

public void AppendText(string s)

public abstract Node Clone(Document newOwner, bool deep)

Clones the current node using the new owner.

public INode Clone(bool deep = true)

protected void CloneNode(Node target, Document owner, bool deep)

public bool Contains(INode otherNode)

public virtual bool Equals(INode otherNode)

public INode InsertBefore(INode newElement, INode referenceElement)

public INode InsertChild(int index, INode child)

public void InsertNode(int index, Node node)

public void InsertText(int index, string s)

public bool IsDefaultNamespace(string namespaceUri)

protected virtual string LocateNamespace(string prefix)

protected virtual string LocatePrefix(string namespaceUri)

public string LookupNamespaceUri(string prefix)

public string LookupPrefix(string namespaceUri)

protected virtual void NodeIsAdopted(Document oldDocument)

Run any adopting steps defined for node in other applicable specifications and pass node and oldDocument as parameters.

protected virtual void NodeIsInserted(Node newNode)

Specifications may define insertion steps for all or some nodes.

protected virtual void NodeIsRemoved(Node removedNode, Node oldPreviousSibling)

Specifications may define removing steps for all or some nodes.

public void Normalize()

protected virtual void OnParentChanged()

public INode RemoveChild(INode child)

public void RemoveNode(int index, Node node)

public INode ReplaceChild(INode newChild, INode oldChild)

protected virtual void ReplacedAll()

Called when ReplaceAll was run.

public void ToHtml(TextWriter writer, IMarkupFormatter formatter)