class Protocol::DOM::Node
- Protocol::DOM::Node
- Reference
- Object
Overview
DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.
Included Modules
- JSON::Serializable
Defined in:
protocol/dom.crConstructors
Instance Method Summary
- #assigned_slot : BackendNode | Nil
-
#attributes : Array(String) | Nil
Attributes of the
Element
node in the form of flat array[name1, value1, name2, value2]
. -
#backend_node_id : BackendNodeId
The BackendNodeId for this node.
-
#base_url : String | Nil
Base URL that
Document
orFrameOwner
node uses for URL completion. -
#child_node_count : Int::Primitive | Nil
Child count for
Container
nodes. -
#children : Array(Node) | Nil
Child nodes of this node when requested with children.
- #compatibility_mode : CompatibilityMode | Nil
-
#content_document : Node | Nil
Content document for frame owner elements.
-
#distributed_nodes : Array(BackendNode) | Nil
Distributed nodes for given insertion point.
-
#document_url : String | Nil
Document URL that
Document
orFrameOwner
node points to. -
#frame_id : Page::FrameId | Nil
Frame ID for frame owner elements.
-
#imported_document : Node | Nil
Deprecated, as the HTML Imports API has been removed (crbug.com/937746).
-
#internal_subset : String | Nil
DocumentType
's internalSubset. -
#is_svg : Bool | Nil
Whether the node is SVG.
-
#local_name : String
Node
's localName. -
#name : String | Nil
Attr
's name. -
#node_id : NodeId
Node identifier that is passed into the rest of the DOM messages as the
nodeId
. -
#node_name : String
Node
's nodeName. -
#node_type : Int::Primitive
Node
's nodeType. -
#node_value : String
Node
's nodeValue. -
#parent_id : NodeId | Nil
The id of the parent node if any.
-
#pseudo_elements : Array(Node) | Nil
Pseudo elements associated with this node.
-
#pseudo_identifier : String | Nil
Pseudo element identifier for this node.
-
#pseudo_type : PseudoType | Nil
Pseudo element type for this node.
-
#public_id : String | Nil
DocumentType
's publicId. -
#shadow_root_type : ShadowRootType | Nil
Shadow root type.
-
#shadow_roots : Array(Node) | Nil
Shadow root list for given element host.
-
#system_id : String | Nil
DocumentType
's systemId. -
#template_content : Node | Nil
Content document fragment for template elements.
-
#value : String | Nil
Attr
's value. -
#xml_version : String | Nil
Document
's XML version in case of XML documents.
Constructor Detail
Instance Method Detail
Attributes of the Element
node in the form of flat array [name1, value1, name2, value2]
.
Child nodes of this node when requested with children.
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.
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.
Pseudo element identifier for this node. Only present if there is a valid pseudoType.