Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLElement

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

interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
accessKey: string;
readonly accessKeyLabel: string;
autocapitalize: string;
dir: string;
draggable: boolean;
hidden: boolean;
inert: boolean;
innerText: string;
lang: string;
readonly offsetHeight: number;
readonly offsetLeft: number;
readonly offsetParent: Element | null;
readonly offsetTop: number;
readonly offsetWidth: number;
outerText: string;
spellcheck: boolean;
title: string;
translate: boolean;
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;
attachInternals(): ElementInternals;
click(): 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;
}
var HTMLElement: {
prototype: HTMLElement;
new (): HTMLElement;
}
;

§Extends

§Properties

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

§Methods

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