struct Protocol::DOMSnapshot::DocumentSnapshot

Overview

Document snapshot.

Included Modules

Defined in:

protocol/dom_snapshot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def base_url : StringIndex #

Base URL that Document or FrameOwner node uses for URL completion.


[View source]
def content_height : Number::Primitive | Nil #

Document content height.


[View source]
def content_language : StringIndex #

Contains the document's content language.


[View source]
def content_width : Number::Primitive | Nil #

Document content width.


[View source]
def document_url : StringIndex #

Document URL that Document or FrameOwner node points to.


[View source]
def encoding_name : StringIndex #

Contains the document's character set encoding.


[View source]
def frame_id : StringIndex #

Frame ID for frame owner elements and also for the document node.


[View source]
def layout : LayoutTreeSnapshot #

The nodes in the layout tree.


[View source]
def nodes : NodeTreeSnapshot #

A table with dom nodes.


[View source]
def public_id : StringIndex #

DocumentType node's publicId.


[View source]
def scroll_offset_x : Number::Primitive | Nil #

Horizontal scroll offset.


[View source]
def scroll_offset_y : Number::Primitive | Nil #

Vertical scroll offset.


[View source]
def system_id : StringIndex #

DocumentType node's systemId.


[View source]
def text_boxes : TextBoxSnapshot #

The post-layout inline text nodes.


[View source]
def title : StringIndex #

Document title.


[View source]