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

x/gauntlet/imports/happy_dom.ts>IHTMLImageElement

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

Properties

alt: string
readonly
complete: boolean
crossOrigin: string
readonly
currentSrc: string
decoding: string
height: string
isMap: boolean
loading: string
readonly
naturalHeight: number
readonly
naturalWidth: number
referrerPolicy: string
sizes: string
src: string
srcset: string
useMap: string
width: string
readonly
x: number
readonly
y: number

Methods

decode(): Promise<void>

The decode() method of the HTMLImageElement interface returns a Promise that resolves when the image is decoded and it is safe to append the image to the DOM.

cloneNode(deep: boolean): IHTMLImageElement

Clones a node.