INode
A Node is an interface from which a number of DOM types inherit, and
allows these various types to be treated similarly.
using AngleSharp.Attributes;
namespace AngleSharp.Dom
{
[DomName("Node")]
public interface INode : IEventTarget, IMarkupFormattable
{
[DomName("baseURI")]
string BaseUri { get; }
Url BaseUrl { get; }
[DomName("nodeName")]
string NodeName { get; }
[DomName("childNodes")]
INodeList ChildNodes { get; }
[DomName("ownerDocument")]
IDocument Owner { get; }
[DomName("parentElement")]
IElement ParentElement { get; }
[DomName("parentNode")]
INode Parent { get; }
[DomName("firstChild")]
INode FirstChild { get; }
[DomName("lastChild")]
INode LastChild { get; }
[DomName("nextSibling")]
INode NextSibling { get; }
[DomName("previousSibling")]
INode PreviousSibling { get; }
[DomName("nodeType")]
NodeType NodeType { get; }
[DomName("nodeValue")]
string NodeValue { get; set; }
[DomName("textContent")]
string TextContent { get; set; }
[DomName("hasChildNodes")]
bool HasChildNodes { get; }
[DomName("cloneNode")]
INode Clone(bool deep = true);
[DomName("isEqualNode")]
bool Equals(INode otherNode);
[DomName("compareDocumentPosition")]
DocumentPositions CompareDocumentPosition(INode otherNode);
[DomName("normalize")]
void Normalize();
[DomName("contains")]
bool Contains(INode otherNode);
[DomName("isDefaultNamespace")]
bool IsDefaultNamespace(string namespaceUri);
[DomName("lookupNamespaceURI")]
string LookupNamespaceUri(string prefix);
[DomName("lookupPrefix")]
string LookupPrefix(string namespaceUri);
[DomName("appendChild")]
INode AppendChild(INode child);
[DomName("insertBefore")]
INode InsertBefore(INode newElement, INode referenceElement);
[DomName("removeChild")]
INode RemoveChild(INode child);
[DomName("replaceChild")]
INode ReplaceChild(INode newChild, INode oldChild);
}
}