Module

x/evt/lib/index.ts

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.HTMLObjectElement
implements HTMLElement
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { HTMLObjectElement } = dom;

Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of element, representing external resources.

Properties

deprecated
align: string
deprecated
archive: string
deprecated
border: string
deprecated
code: string
deprecated
codeBase: string
deprecated
codeType: string
readonly
contentDocument: Document | null

Retrieves the document object of the page or frame.

readonly
contentWindow: WindowProxy | null
data: string

Sets or retrieves the URL that references the data of the object.

deprecated
declare: boolean
readonly
form: HTMLFormElement | null

Retrieves a reference to the form that the object is embedded in.

height: string

Sets or retrieves the height of the object.

deprecated
hspace: number
name: string

Sets or retrieves the name of the object.

deprecated
standby: string
type: string

Sets or retrieves the MIME type of the object.

useMap: string

Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.

readonly
validationMessage: string

Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.

readonly
validity: ValidityState

Returns a ValidityState object that represents the validity states of an element.

deprecated
vspace: number
width: string

Sets or retrieves the width of the object.

readonly
willValidate: boolean

Returns whether an element will successfully validate based on forms validation rules and constraints.

Methods

checkValidity(): boolean

Returns whether a form will validate when it is submitted, without having to submit it.

getSVGDocument(): Document | null
reportValidity(): boolean
setCustomValidity(error: string): void

Sets a custom error message that is displayed when a form is submitted.

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