Skip to main content
Module

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

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

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