Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/index.ts>dom.DocumentOrShadowRoot

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.DocumentOrShadowRoot
import { type dom } from "https://deno.land/x/evt@v2.4.22/lib/index.ts";
const { DocumentOrShadowRoot } = dom;

Properties

readonly
activeElement: Element | null
readonly
fullscreenElement: Element | null

Returns document's fullscreen element.

readonly
pointerLockElement: Element | null
readonly
styleSheets: StyleSheetList

Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.

Methods

caretPositionFromPoint(x: number, y: number): CaretPosition | null
deprecated
caretRangeFromPoint(x: number, y: number): Range
elementFromPoint(x: number, y: number): Element | null
elementsFromPoint(x: number, y: number): Element[]
getSelection(): Selection | null