Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.DOMSnapshot.DocumentSnapshot
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { DocumentSnapshot } = Protocol.DOMSnapshot;

Document snapshot.

Properties

documentURL: StringIndex

Document URL that Document or FrameOwner node points to.

Document title.

baseURL: StringIndex

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

contentLanguage: StringIndex

Contains the document's content language.

encodingName: StringIndex

Contains the document's character set encoding.

publicId: StringIndex

DocumentType node's publicId.

systemId: StringIndex

DocumentType node's systemId.

frameId: StringIndex

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

A table with dom nodes.

The nodes in the layout tree.

textBoxes: TextBoxSnapshot

The post-layout inline text nodes.

optional
scrollOffsetX: number

Horizontal scroll offset.

optional
scrollOffsetY: number

Vertical scroll offset.

optional
contentWidth: number

Document content width.

optional
contentHeight: number

Document content height.