Class Node
DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.
public sealed record Node : IEquatable<Node>
- Inheritance
-
Node
- Implements
- Inherited Members
Constructors
Node(NodeId, BackendNodeId, long, string, string, string)
DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.
public Node(NodeId NodeId, BackendNodeId BackendNodeId, long NodeType, string NodeName, string LocalName, string NodeValue)
Parameters
NodeIdNodeIdNode identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.
BackendNodeIdBackendNodeIdThe BackendNodeId for this node.
NodeTypelongNode's nodeType.
NodeNamestringNode's nodeName.
LocalNamestringNode's localName.
NodeValuestringNode's nodeValue.
Properties
AdProvenance
public AdProvenance? AdProvenance { get; init; }
Property Value
AdoptedStyleSheets
public ImmutableArray<StyleSheetId>? AdoptedStyleSheets { get; init; }
Property Value
AffectedByStartingStyles
public bool? AffectedByStartingStyles { get; init; }
Property Value
- bool?
AssignedSlot
public BackendNode? AssignedSlot { get; init; }
Property Value
Attributes
Attributes of the Element node in the form of flat array [name1, value1, name2, value2].
public ImmutableArray<string>? Attributes { get; init; }
Property Value
BackendNodeId
The BackendNodeId for this node.
public BackendNodeId BackendNodeId { get; init; }
Property Value
BaseURL
Base URL that Document or FrameOwner node uses for URL completion.
public string? BaseURL { get; init; }
Property Value
ChildNodeCount
Child count for Container nodes.
public long? ChildNodeCount { get; init; }
Property Value
- long?
Children
Child nodes of this node when requested with children.
public ImmutableArray<Node>? Children { get; init; }
Property Value
CompatibilityMode
public CompatibilityMode? CompatibilityMode { get; init; }
Property Value
ContentDocument
Content document for frame owner elements.
public Node? ContentDocument { get; init; }
Property Value
DistributedNodes
Distributed nodes for given insertion point.
public ImmutableArray<BackendNode>? DistributedNodes { get; init; }
Property Value
DocumentURL
Document URL that Document or FrameOwner node points to.
public string? DocumentURL { get; init; }
Property Value
FrameId
Frame ID for frame owner elements.
public FrameId? FrameId { get; init; }
Property Value
ImportedDocument
Deprecated, as the HTML Imports API has been removed (crbug.com/937746). This property used to return the imported document for the HTMLImport links. The property is always undefined now.
[Obsolete]
public Node? ImportedDocument { get; init; }
Property Value
InternalSubset
DocumentType's internalSubset.
public string? InternalSubset { get; init; }
Property Value
IsSVG
Whether the node is SVG.
public bool? IsSVG { get; init; }
Property Value
- bool?
IsScrollable
public bool? IsScrollable { get; init; }
Property Value
- bool?
LocalName
Node's localName.
public string LocalName { get; init; }
Property Value
Name
Attr's name.
public string? Name { get; init; }
Property Value
NodeId
Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.
public NodeId NodeId { get; init; }
Property Value
NodeName
Node's nodeName.
public string NodeName { get; init; }
Property Value
NodeType
Node's nodeType.
public long NodeType { get; init; }
Property Value
NodeValue
Node's nodeValue.
public string NodeValue { get; init; }
Property Value
ParentId
The id of the parent node if any.
public NodeId? ParentId { get; init; }
Property Value
PseudoElements
Pseudo elements associated with this node.
public ImmutableArray<Node>? PseudoElements { get; init; }
Property Value
PseudoIdentifier
Pseudo element identifier for this node. Only present if there is a valid pseudoType.
public string? PseudoIdentifier { get; init; }
Property Value
PseudoType
Pseudo element type for this node.
public PseudoType? PseudoType { get; init; }
Property Value
PublicId
DocumentType's publicId.
public string? PublicId { get; init; }
Property Value
ShadowRootType
Shadow root type.
public ShadowRootType? ShadowRootType { get; init; }
Property Value
ShadowRoots
Shadow root list for given element host.
public ImmutableArray<Node>? ShadowRoots { get; init; }
Property Value
SystemId
DocumentType's systemId.
public string? SystemId { get; init; }
Property Value
TemplateContent
Content document fragment for template elements.
public Node? TemplateContent { get; init; }
Property Value
Value
Attr's value.
public string? Value { get; init; }
Property Value
XmlVersion
Document's XML version in case of XML documents.
public string? XmlVersion { get; init; }