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

HTMLSourceElement

Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating elements.

interface HTMLSourceElement extends HTMLElement {
height: number;
media: string;
sizes: string;
src: string;
srcset: string;
type: string;
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}
var HTMLSourceElement: {
prototype: HTMLSourceElement;
}
;

§Extends

§Properties

§
height: number
[src]
§
media: string
[src]

Gets or sets the intended media type of the media source.

§
sizes: string
[src]
§
src: string
[src]

The address or URL of the a media resource that is to be considered.

§
srcset: string
[src]
§
type: string
[src]

Gets or sets the MIME type of a media resource.

§
width: number
[src]

§Methods

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