This module contains commonly used utility types, type definitions for DOM properties that can be searched, and type definitions for DOM elements and attributes that extend the DOM types that ship with TypeScript.

The Property* types are used primarily for the has*, hasAll*, and hasSome* functions to determine if elements contain matching properties.

Interfaces

AriaAttributes

All the attributes from the WAI-ARIA 1.1 Specification.

HTMLAnchorAttributes

Attributes for a HTMLAnchorElement.

HTMLAreaAttributes

Attributes for a HTMLAreaElement.

HTMLAttributes

Common attributes for all HTMLElements.

HTMLAttributesTagNameMap

Attributes for HTMLElement by the corresponding tag name.

HTMLAudioAttributes

Attributes for a HTMLAudioElement.

HTMLBaseAttributes

Attributes for a HTMLBaseElement.

HTMLButtonAttributes

Attributes for a HTMLButtonElement.

HTMLCanvasAttributes

Attributes for a HTMLCanvasElement.

HTMLColgroupAttributes

Attributes for a HTMLColgroupElement.

HTMLDataAttributes

Attributes for a HTMLDataElement.

HTMLDelAttributes

Attributes for a HTMLDelElement.

HTMLDetailsAttributes

Attributes for a HTMLDetailsElement.

HTMLDialogAttributes

Attributes for a HTMLDialogElement.

HTMLEmbedAttributes

Attributes for a HTMLEmbedElement.

HTMLFieldSetAttributes

Attributes for a HTMLFieldSetElement.

HTMLFormAttributes

Attributes for a HTMLFormElement.

HTMLHtmlAttributes

Attributes for a HTMLHtmlElement.

HTMLIFrameAttributes

Attributes for a HTMLIFrameElement.

HTMLImageAttributes

Attributes for a HTMLImageElement.

HTMLInputAttributes

Attributes for a HTMLInputElement.

HTMLInsAttributes

Attributes for a HTMLInsElement.

HTMLKeygenAttributes

Attributes for a HTMLKeygenElement.

HTMLLabelAttributes

Attributes for a HTMLLabelElement.

HTMLLIAttributes

Attributes for a HTMLLIElement.

HTMLLinkAttributes

Attributes for a HTMLLinkElement.

HTMLMapAttributes

Attributes for a HTMLMapElement.

HTMLMediaAttributes

Attributes for a HTMLMediaElement.

HTMLMenuAttributes

Attributes for a HTMLMenuElement.

HTMLMetaAttributes

Attributes for a HTMLMetaElement.

HTMLMeterAttributes

Attributes for a HTMLMeterElement.

HTMLObjectAttributes

Attributes for a HTMLObjectElement.

HTMLOListAttributes

Attributes for a HTMLOListElement.

HTMLOptGroupAttributes

Attributes for a HTMLOptGroupElement.

HTMLOptionAttributes

Attributes for a HTMLOptionElement.

HTMLOutputAttributes

Attributes for a HTMLOutputElement.

HTMLParamAttributes

Attributes for a HTMLParamElement.

HTMLProgressAttributes

Attributes for a HTMLProgressElement.

HTMLQuoteAttributes

Attributes for a HTMLQuoteElement.

HTMLScriptAttributes

Attributes for a HTMLScriptElement.

HTMLSelectAttributes

Attributes for a HTMLSelectElement.

HTMLSlotAttributes

Attributes for a HTMLSlotElement.

HTMLSourceAttributes

Attributes for a HTMLSourceElement.

HTMLStyleAttributes

Attributes for a HTMLStyleElement.

HTMLTableAttributes

Attributes for a HTMLTableElement.

HTMLTableCellAttributes

Attributes for a HTMLTableCellElement.

HTMLTableColAttributes

Attributes for a HTMLTableColElement.

HTMLTemplateAttributes

Attributes for a HTMLTemplateElement.

HTMLTextAreaAttributes

Attributes for a HTMLTextAreaElement.

HTMLTimeAttributes

Attributes for a HTMLTimeElement.

HTMLTrackAttributes

Attributes for a HTMLTrackElement.

HTMLVideoAttributes

Attributes for a HTMLVideoElement.

HTMLWebviewAttributes

Attributes for a webview element. This element is available when using Electron. See the Electron documentation for additional details.

SVGAttributes

Attributes for any SVGElement.

SVGAttributesTagNameMap

Attributes for SVGElement by the corresponding tag name.

Type Aliases

AllAttributes

All HTML and SVG element attributes.

AriaRole

All the role attribute values from the WAI-ARIA 1.1 Specification.

Booleanish

Value type for boolean attributes. Some boolean attributes can either be true or false or the string "true" or "false".

ElementOf

Element type associated with the specified tag name.

FullAutoFill

All options for the autocomplete attribute.

HTMLAttributeAnchorTarget

Options for the target attribute in an HTMLAnchorElement.

HTMLElementAttributes

Attributes for the HTMLElement of type E.

HTMLElementTagName

Tag name for HTML element.

HTMLInputTypeAttribute

Options for the type attribute of an <input> element.

PropertyFilter

Filter criteria for determining if a DOM property has the specified value.

PropertySearch

Search criteria that can be used to determine if a DOM property is present on an element. If an array, only the presence of the property names are checked. If an object, the property name and value are checked.

SVGElementAttributes

Attributes for any SVGElement.

SVGElementTagName

Tag name for SVG element.

TagName

Tag name for any HTML or SVG element. Use "*" to represent any element.