struct Protocol::DOMSnapshot::DOMNode
- Protocol::DOMSnapshot::DOMNode
- Struct
- Value
- Object
Overview
A Node in the DOM tree.
Included Modules
- JSON::Serializable
Defined in:
protocol/dom_snapshot.crConstructors
Instance Method Summary
-
#attributes : Array(NameValue) | Nil
Attributes of an
Element
node. -
#backend_node_id : DOM::BackendNodeId
Node
's id, corresponds to DOM.Node.backendNodeId. -
#base_url : String | Nil
Base URL that
Document
orFrameOwner
node uses for URL completion. -
#child_node_indexes : Array(Int::Primitive) | Nil
The indexes of the node's child nodes in the
domNodes
array returned bygetSnapshot
, if any. -
#content_document_index : Int::Primitive | Nil
The index of a frame owner element's content document in the
domNodes
array returned bygetSnapshot
, if any. -
#content_language : String | Nil
Only set for documents, contains the document's content language.
-
#current_source_url : String | Nil
The selected url for nodes with a srcset attribute.
-
#document_encoding : String | Nil
Only set for documents, contains the document's character set encoding.
-
#document_url : String | Nil
Document URL that
Document
orFrameOwner
node points to. -
#event_listeners : Array(DOMDebugger::EventListener) | Nil
Details of the node's event listeners, if any.
-
#frame_id : Page::FrameId | Nil
Frame ID for frame owner elements and also for the document node.
-
#input_checked : Bool | Nil
Only set for radio and checkbox input elements, indicates if the element has been checked
-
#input_value : String | Nil
Only set for input elements, contains the input's associated text value.
-
#is_clickable : Bool | Nil
Whether this DOM node responds to mouse clicks.
-
#layout_node_index : Int::Primitive | Nil
The index of the node's related layout tree node in the
layoutTreeNodes
array returned bygetSnapshot
, if any. -
#node_name : String
Node
's nodeName. -
#node_type : Int::Primitive
Node
's nodeType. -
#node_value : String
Node
's nodeValue. -
#option_selected : Bool | Nil
Only set for option elements, indicates if the element has been selected
-
#origin_url : String | Nil
The url of the script (if any) that generates this node.
-
#pseudo_element_indexes : Array(Int::Primitive) | Nil
Indexes of pseudo elements associated with this node in the
domNodes
array returned bygetSnapshot
, if any. -
#pseudo_type : DOM::PseudoType | Nil
Type of a pseudo element node.
-
#public_id : String | Nil
DocumentType
node's publicId. -
#scroll_offset_x : Number::Primitive | Nil
Scroll offsets, set when this node is a Document.
- #scroll_offset_y : Number::Primitive | Nil
-
#shadow_root_type : DOM::ShadowRootType | Nil
Shadow root type.
-
#system_id : String | Nil
DocumentType
node's systemId. -
#text_value : String | Nil
Only set for textarea elements, contains the text value.
Constructor Detail
Instance Method Detail
The indexes of the node's child nodes in the domNodes
array returned by getSnapshot
, if
any.
The index of a frame owner element's content document in the domNodes
array returned by
getSnapshot
, if any.
Only set for documents, contains the document's content language.
Only set for documents, contains the document's character set encoding.
Details of the node's event listeners, if any.
Frame ID for frame owner elements and also for the document node.
Only set for radio and checkbox input elements, indicates if the element has been checked
Only set for input elements, contains the input's associated text value.
Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.
The index of the node's related layout tree node in the layoutTreeNodes
array returned by
getSnapshot
, if any.
Only set for option elements, indicates if the element has been selected
Indexes of pseudo elements associated with this node in the domNodes
array returned by
getSnapshot
, if any.