Skip to main content
Go to Latest
interface default.DOMSnapshot.DocumentSnapshot
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { DocumentSnapshot } = default.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.