Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ogone/src/ogone.dom.d.ts>HTMLElement

Advanced Web Composition for Future
Latest
import { type HTMLElement } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

Any HTML element. Some elements directly implement this export interface, while others implement it via an export interface that inherits it.

Properties

accessKey: string
readonly
accessKeyLabel: string
autocapitalize: string
dir: string
draggable: boolean
hidden: boolean
innerText: string
lang: string
readonly
offsetHeight: number
readonly
offsetLeft: number
readonly
offsetParent: Element | null
readonly
offsetTop: number
readonly
offsetWidth: number
spellcheck: boolean
title: string
translate: boolean

Methods

click(): void
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void