Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/gauntlet/imports/happy_dom.ts>HTMLImageElement

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

Properties

alt: string

Returns alt.

readonly
complete: boolean
crossOrigin: any
readonly
currentSrc: string

Returns current src.

decoding: string
height: string

Returns height.

isMap: boolean

Returns is map.

loading: string
readonly
naturalHeight: number
readonly
naturalWidth: number
referrerPolicy: string

Returns referrer policy.

sizes: string

Returns sizes.

src: string

Returns source.

srcset: string

Returns srcset.

useMap: string

Returns use map.

width: string

Returns width.

readonly
x: number
readonly
y: number

Methods

cloneNode(deep?: boolean): IHTMLImageElement

Clones a node.

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.