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

x/gauntlet/imports/happy_dom.ts>HTMLElement

Work-in-progress front-end tool which does put a smile on my face
Latest
class HTMLElement
implements IHTMLElement
extends Element
Re-export
import { HTMLElement } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";

Properties

private
_style
readonly
accessKey: string
readonly
accessKeyLabel: string
readonly
clientHeight: number
readonly
clientWidth: number
readonly
contentEditable: string
readonly
dataset: { [key: string]: string; }

Returns data set.

dir: string

Returns direction.

hidden: boolean

Returns hidden.

innerText: string

Returns inner text.

readonly
isContentEditable: boolean
lang: string

Returns language.

readonly
offsetHeight: number
readonly
offsetLeft: number
readonly
offsetTop: number
readonly
offsetWidth: number
readonly
style: CSSStyleDeclaration

Returns style.

tabIndex: number

Returns tab index.

title: string

Returns title.

Methods

blur(): void

Triggers a blur event.

click(): void

Triggers a click event.

cloneNode(deep?: boolean): IHTMLElement

Clones a node.

focus(): void

Triggers a focus event.

removeAttributeNode(attribute: Attr): void

Removes an Attr node.

setAttributeNode(attribute: Attr): Attr

The setAttributeNode() method adds a new Attr node to the specified element.