/// Auto-generated interfaces from domain: html
///
/// AUTO-GENERATED by: scripts/generate_browser_wit.py
/// DO NOT EDIT MANUALLY — changes will be overwritten.
///
/// Source: wit/generated/html.wit
/// Regenerate with: just wit-gen
interface html-all-collection {
/// Opaque handle to a host-side `HTMLAllCollection` instance.
type html-all-collection-handle = u64;
/// `length` attribute — getter.
get-length: func(self: html-all-collection-handle) -> u32;
/// `Element()` operation.
element: func(self: html-all-collection-handle, index: u32);
}
interface radio-node-list {
/// Opaque handle to a host-side `RadioNodeList` instance.
type radio-node-list-handle = u64;
/// `value` attribute — getter.
get-value: func(self: radio-node-list-handle) -> string;
/// `value` attribute — setter.
set-value: func(self: radio-node-list-handle, value: string);
}
interface html-options-collection {
/// Opaque handle to a host-side `HTMLOptionsCollection` instance.
type html-options-collection-handle = u64;
/// `length` attribute — getter.
get-length: func(self: html-options-collection-handle) -> u32;
/// `length` attribute — setter.
set-length: func(self: html-options-collection-handle, value: u32);
/// `undefined()` operation.
undefined: func(self: html-options-collection-handle, index: u32, %option: option<u64>);
/// `add()` operation.
add: func(self: html-options-collection-handle, element: u64, before: option<f64>);
/// `remove()` operation.
remove: func(self: html-options-collection-handle, index: s32);
/// `selectedIndex` attribute — getter.
get-selected-index: func(self: html-options-collection-handle) -> s32;
/// `selectedIndex` attribute — setter.
set-selected-index: func(self: html-options-collection-handle, value: s32);
}
interface dom-string-list {
/// Opaque handle to a host-side `DOMStringList` instance.
type dom-string-list-handle = u64;
/// `length` attribute — getter.
get-length: func(self: dom-string-list-handle) -> u32;
/// `item()` operation.
item: func(self: dom-string-list-handle, index: u32) -> option<string>;
/// `contains()` operation.
contains: func(self: dom-string-list-handle, %string: string) -> bool;
}
interface html-or-svg-element {
/// Opaque handle to a host-side `HTMLOrSVGElement` instance.
type html-or-svg-element-handle = u64;
/// `dataset` attribute — getter.
get-dataset: func(self: html-or-svg-element-handle) -> u64;
/// `nonce` attribute — getter.
get-nonce: func(self: html-or-svg-element-handle) -> string;
/// `nonce` attribute — setter.
set-nonce: func(self: html-or-svg-element-handle, value: string);
/// `autofocus` attribute — getter.
get-autofocus: func(self: html-or-svg-element-handle) -> bool;
/// `autofocus` attribute — setter.
set-autofocus: func(self: html-or-svg-element-handle, value: bool);
/// `tabIndex` attribute — getter.
get-tab-index: func(self: html-or-svg-element-handle) -> s32;
/// `tabIndex` attribute — setter.
set-tab-index: func(self: html-or-svg-element-handle, value: s32);
/// `focus()` operation.
focus: func(self: html-or-svg-element-handle, options: option<u64>);
/// `blur()` operation.
blur: func(self: html-or-svg-element-handle);
}
interface dom-string-map {
/// Opaque handle to a host-side `DOMStringMap` instance.
type dom-string-map-handle = u64;
/// `DOMString()` operation.
dom-string: func(self: dom-string-map-handle, name: string);
/// `undefined()` operation.
undefined: func(self: dom-string-map-handle, name: string, value: string);
}
interface html-html-element {
/// Opaque handle to a host-side `HTMLHtmlElement` instance.
type html-html-element-handle = u64;
/// `version` attribute — getter.
get-version: func(self: html-html-element-handle) -> string;
/// `version` attribute — setter.
set-version: func(self: html-html-element-handle, value: string);
}
interface html-title-element {
/// Opaque handle to a host-side `HTMLTitleElement` instance.
type html-title-element-handle = u64;
/// `text` attribute — getter.
get-text: func(self: html-title-element-handle) -> string;
/// `text` attribute — setter.
set-text: func(self: html-title-element-handle, value: string);
}
interface html-base-element {
/// Opaque handle to a host-side `HTMLBaseElement` instance.
type html-base-element-handle = u64;
/// `href` attribute — getter.
get-href: func(self: html-base-element-handle) -> string;
/// `href` attribute — setter.
set-href: func(self: html-base-element-handle, value: string);
/// `target` attribute — getter.
get-target: func(self: html-base-element-handle) -> string;
/// `target` attribute — setter.
set-target: func(self: html-base-element-handle, value: string);
}
interface html-link-element {
/// Opaque handle to a host-side `HTMLLinkElement` instance.
type html-link-element-handle = u64;
/// `href` attribute — getter.
get-href: func(self: html-link-element-handle) -> string;
/// `href` attribute — setter.
set-href: func(self: html-link-element-handle, value: string);
/// `crossOrigin` attribute — getter.
get-cross-origin: func(self: html-link-element-handle) -> option<string>;
/// `crossOrigin` attribute — setter.
set-cross-origin: func(self: html-link-element-handle, value: option<string>);
/// `rel` attribute — getter.
get-rel: func(self: html-link-element-handle) -> string;
/// `rel` attribute — setter.
set-rel: func(self: html-link-element-handle, value: string);
/// `as` attribute — getter.
get-as: func(self: html-link-element-handle) -> string;
/// `as` attribute — setter.
set-as: func(self: html-link-element-handle, value: string);
/// `relList` attribute — getter.
get-rel-list: func(self: html-link-element-handle) -> u64;
/// `media` attribute — getter.
get-media: func(self: html-link-element-handle) -> string;
/// `media` attribute — setter.
set-media: func(self: html-link-element-handle, value: string);
/// `integrity` attribute — getter.
get-integrity: func(self: html-link-element-handle) -> string;
/// `integrity` attribute — setter.
set-integrity: func(self: html-link-element-handle, value: string);
/// `hreflang` attribute — getter.
get-hreflang: func(self: html-link-element-handle) -> string;
/// `hreflang` attribute — setter.
set-hreflang: func(self: html-link-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-link-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: html-link-element-handle, value: string);
/// `sizes` attribute — getter.
get-sizes: func(self: html-link-element-handle) -> u64;
/// `imageSrcset` attribute — getter.
get-image-srcset: func(self: html-link-element-handle) -> string;
/// `imageSrcset` attribute — setter.
set-image-srcset: func(self: html-link-element-handle, value: string);
/// `imageSizes` attribute — getter.
get-image-sizes: func(self: html-link-element-handle) -> string;
/// `imageSizes` attribute — setter.
set-image-sizes: func(self: html-link-element-handle, value: string);
/// `referrerPolicy` attribute — getter.
get-referrer-policy: func(self: html-link-element-handle) -> string;
/// `referrerPolicy` attribute — setter.
set-referrer-policy: func(self: html-link-element-handle, value: string);
/// `blocking` attribute — getter.
get-blocking: func(self: html-link-element-handle) -> u64;
/// `disabled` attribute — getter.
get-disabled: func(self: html-link-element-handle) -> bool;
/// `disabled` attribute — setter.
set-disabled: func(self: html-link-element-handle, value: bool);
/// `fetchPriority` attribute — getter.
get-fetch-priority: func(self: html-link-element-handle) -> string;
/// `fetchPriority` attribute — setter.
set-fetch-priority: func(self: html-link-element-handle, value: string);
/// `charset` attribute — getter.
get-charset: func(self: html-link-element-handle) -> string;
/// `charset` attribute — setter.
set-charset: func(self: html-link-element-handle, value: string);
/// `rev` attribute — getter.
get-rev: func(self: html-link-element-handle) -> string;
/// `rev` attribute — setter.
set-rev: func(self: html-link-element-handle, value: string);
/// `target` attribute — getter.
get-target: func(self: html-link-element-handle) -> string;
/// `target` attribute — setter.
set-target: func(self: html-link-element-handle, value: string);
}
interface html-meta-element {
/// Opaque handle to a host-side `HTMLMetaElement` instance.
type html-meta-element-handle = u64;
/// `name` attribute — getter.
get-name: func(self: html-meta-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-meta-element-handle, value: string);
/// `httpEquiv` attribute — getter.
get-http-equiv: func(self: html-meta-element-handle) -> string;
/// `httpEquiv` attribute — setter.
set-http-equiv: func(self: html-meta-element-handle, value: string);
/// `content` attribute — getter.
get-content: func(self: html-meta-element-handle) -> string;
/// `content` attribute — setter.
set-content: func(self: html-meta-element-handle, value: string);
/// `media` attribute — getter.
get-media: func(self: html-meta-element-handle) -> string;
/// `media` attribute — setter.
set-media: func(self: html-meta-element-handle, value: string);
/// `scheme` attribute — getter.
get-scheme: func(self: html-meta-element-handle) -> string;
/// `scheme` attribute — setter.
set-scheme: func(self: html-meta-element-handle, value: string);
}
interface html-style-element {
/// Opaque handle to a host-side `HTMLStyleElement` instance.
type html-style-element-handle = u64;
/// `disabled` attribute — getter.
get-disabled: func(self: html-style-element-handle) -> bool;
/// `disabled` attribute — setter.
set-disabled: func(self: html-style-element-handle, value: bool);
/// `media` attribute — getter.
get-media: func(self: html-style-element-handle) -> string;
/// `media` attribute — setter.
set-media: func(self: html-style-element-handle, value: string);
/// `blocking` attribute — getter.
get-blocking: func(self: html-style-element-handle) -> u64;
/// `type` attribute — getter.
get-type: func(self: html-style-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: html-style-element-handle, value: string);
}
interface html-body-element {
/// Opaque handle to a host-side `HTMLBodyElement` instance.
type html-body-element-handle = u64;
/// `text` attribute — getter.
get-text: func(self: html-body-element-handle) -> string;
/// `text` attribute — setter.
set-text: func(self: html-body-element-handle, value: string);
/// `link` attribute — getter.
get-link: func(self: html-body-element-handle) -> string;
/// `link` attribute — setter.
set-link: func(self: html-body-element-handle, value: string);
/// `vLink` attribute — getter.
get-v-link: func(self: html-body-element-handle) -> string;
/// `vLink` attribute — setter.
set-v-link: func(self: html-body-element-handle, value: string);
/// `aLink` attribute — getter.
get-a-link: func(self: html-body-element-handle) -> string;
/// `aLink` attribute — setter.
set-a-link: func(self: html-body-element-handle, value: string);
/// `bgColor` attribute — getter.
get-bg-color: func(self: html-body-element-handle) -> string;
/// `bgColor` attribute — setter.
set-bg-color: func(self: html-body-element-handle, value: string);
/// `background` attribute — getter.
get-background: func(self: html-body-element-handle) -> string;
/// `background` attribute — setter.
set-background: func(self: html-body-element-handle, value: string);
}
interface html-heading-element {
/// Opaque handle to a host-side `HTMLHeadingElement` instance.
type html-heading-element-handle = u64;
/// `align` attribute — getter.
get-align: func(self: html-heading-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-heading-element-handle, value: string);
}
interface html-paragraph-element {
/// Opaque handle to a host-side `HTMLParagraphElement` instance.
type html-paragraph-element-handle = u64;
/// `align` attribute — getter.
get-align: func(self: html-paragraph-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-paragraph-element-handle, value: string);
}
interface htmlhr-element {
/// Opaque handle to a host-side `HTMLHRElement` instance.
type htmlhr-element-handle = u64;
/// `align` attribute — getter.
get-align: func(self: htmlhr-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: htmlhr-element-handle, value: string);
/// `color` attribute — getter.
get-color: func(self: htmlhr-element-handle) -> string;
/// `color` attribute — setter.
set-color: func(self: htmlhr-element-handle, value: string);
/// `noShade` attribute — getter.
get-no-shade: func(self: htmlhr-element-handle) -> bool;
/// `noShade` attribute — setter.
set-no-shade: func(self: htmlhr-element-handle, value: bool);
/// `size` attribute — getter.
get-size: func(self: htmlhr-element-handle) -> string;
/// `size` attribute — setter.
set-size: func(self: htmlhr-element-handle, value: string);
/// `width` attribute — getter.
get-width: func(self: htmlhr-element-handle) -> string;
/// `width` attribute — setter.
set-width: func(self: htmlhr-element-handle, value: string);
}
interface html-pre-element {
/// Opaque handle to a host-side `HTMLPreElement` instance.
type html-pre-element-handle = u64;
/// `width` attribute — getter.
get-width: func(self: html-pre-element-handle) -> s32;
/// `width` attribute — setter.
set-width: func(self: html-pre-element-handle, value: s32);
}
interface html-quote-element {
/// Opaque handle to a host-side `HTMLQuoteElement` instance.
type html-quote-element-handle = u64;
/// `cite` attribute — getter.
get-cite: func(self: html-quote-element-handle) -> string;
/// `cite` attribute — setter.
set-cite: func(self: html-quote-element-handle, value: string);
}
interface htmlo-list-element {
/// Opaque handle to a host-side `HTMLOListElement` instance.
type htmlo-list-element-handle = u64;
/// `reversed` attribute — getter.
get-reversed: func(self: htmlo-list-element-handle) -> bool;
/// `reversed` attribute — setter.
set-reversed: func(self: htmlo-list-element-handle, value: bool);
/// `start` attribute — getter.
get-start: func(self: htmlo-list-element-handle) -> s32;
/// `start` attribute — setter.
set-start: func(self: htmlo-list-element-handle, value: s32);
/// `type` attribute — getter.
get-type: func(self: htmlo-list-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: htmlo-list-element-handle, value: string);
/// `compact` attribute — getter.
get-compact: func(self: htmlo-list-element-handle) -> bool;
/// `compact` attribute — setter.
set-compact: func(self: htmlo-list-element-handle, value: bool);
}
interface htmlu-list-element {
/// Opaque handle to a host-side `HTMLUListElement` instance.
type htmlu-list-element-handle = u64;
/// `compact` attribute — getter.
get-compact: func(self: htmlu-list-element-handle) -> bool;
/// `compact` attribute — setter.
set-compact: func(self: htmlu-list-element-handle, value: bool);
/// `type` attribute — getter.
get-type: func(self: htmlu-list-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: htmlu-list-element-handle, value: string);
}
interface html-menu-element {
/// Opaque handle to a host-side `HTMLMenuElement` instance.
type html-menu-element-handle = u64;
/// `compact` attribute — getter.
get-compact: func(self: html-menu-element-handle) -> bool;
/// `compact` attribute — setter.
set-compact: func(self: html-menu-element-handle, value: bool);
}
interface htmlli-element {
/// Opaque handle to a host-side `HTMLLIElement` instance.
type htmlli-element-handle = u64;
/// `value` attribute — getter.
get-value: func(self: htmlli-element-handle) -> s32;
/// `value` attribute — setter.
set-value: func(self: htmlli-element-handle, value: s32);
/// `type` attribute — getter.
get-type: func(self: htmlli-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: htmlli-element-handle, value: string);
}
interface htmld-list-element {
/// Opaque handle to a host-side `HTMLDListElement` instance.
type htmld-list-element-handle = u64;
/// `compact` attribute — getter.
get-compact: func(self: htmld-list-element-handle) -> bool;
/// `compact` attribute — setter.
set-compact: func(self: htmld-list-element-handle, value: bool);
}
interface html-div-element {
/// Opaque handle to a host-side `HTMLDivElement` instance.
type html-div-element-handle = u64;
/// `align` attribute — getter.
get-align: func(self: html-div-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-div-element-handle, value: string);
}
interface html-anchor-element {
/// Opaque handle to a host-side `HTMLAnchorElement` instance.
type html-anchor-element-handle = u64;
/// `target` attribute — getter.
get-target: func(self: html-anchor-element-handle) -> string;
/// `target` attribute — setter.
set-target: func(self: html-anchor-element-handle, value: string);
/// `download` attribute — getter.
get-download: func(self: html-anchor-element-handle) -> string;
/// `download` attribute — setter.
set-download: func(self: html-anchor-element-handle, value: string);
/// `ping` attribute — getter.
get-ping: func(self: html-anchor-element-handle) -> string;
/// `ping` attribute — setter.
set-ping: func(self: html-anchor-element-handle, value: string);
/// `rel` attribute — getter.
get-rel: func(self: html-anchor-element-handle) -> string;
/// `rel` attribute — setter.
set-rel: func(self: html-anchor-element-handle, value: string);
/// `relList` attribute — getter.
get-rel-list: func(self: html-anchor-element-handle) -> u64;
/// `hreflang` attribute — getter.
get-hreflang: func(self: html-anchor-element-handle) -> string;
/// `hreflang` attribute — setter.
set-hreflang: func(self: html-anchor-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-anchor-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: html-anchor-element-handle, value: string);
/// `text` attribute — getter.
get-text: func(self: html-anchor-element-handle) -> string;
/// `text` attribute — setter.
set-text: func(self: html-anchor-element-handle, value: string);
/// `referrerPolicy` attribute — getter.
get-referrer-policy: func(self: html-anchor-element-handle) -> string;
/// `referrerPolicy` attribute — setter.
set-referrer-policy: func(self: html-anchor-element-handle, value: string);
/// `coords` attribute — getter.
get-coords: func(self: html-anchor-element-handle) -> string;
/// `coords` attribute — setter.
set-coords: func(self: html-anchor-element-handle, value: string);
/// `charset` attribute — getter.
get-charset: func(self: html-anchor-element-handle) -> string;
/// `charset` attribute — setter.
set-charset: func(self: html-anchor-element-handle, value: string);
/// `name` attribute — getter.
get-name: func(self: html-anchor-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-anchor-element-handle, value: string);
/// `rev` attribute — getter.
get-rev: func(self: html-anchor-element-handle) -> string;
/// `rev` attribute — setter.
set-rev: func(self: html-anchor-element-handle, value: string);
/// `shape` attribute — getter.
get-shape: func(self: html-anchor-element-handle) -> string;
/// `shape` attribute — setter.
set-shape: func(self: html-anchor-element-handle, value: string);
}
interface html-data-element {
/// Opaque handle to a host-side `HTMLDataElement` instance.
type html-data-element-handle = u64;
/// `value` attribute — getter.
get-value: func(self: html-data-element-handle) -> string;
/// `value` attribute — setter.
set-value: func(self: html-data-element-handle, value: string);
}
interface html-time-element {
/// Opaque handle to a host-side `HTMLTimeElement` instance.
type html-time-element-handle = u64;
/// `dateTime` attribute — getter.
get-date-time: func(self: html-time-element-handle) -> string;
/// `dateTime` attribute — setter.
set-date-time: func(self: html-time-element-handle, value: string);
}
interface htmlbr-element {
/// Opaque handle to a host-side `HTMLBRElement` instance.
type htmlbr-element-handle = u64;
/// `clear` attribute — getter.
get-clear: func(self: htmlbr-element-handle) -> string;
/// `clear` attribute — setter.
set-clear: func(self: htmlbr-element-handle, value: string);
}
interface hyperlink-element-utils {
/// Opaque handle to a host-side `HyperlinkElementUtils` instance.
type hyperlink-element-utils-handle = u64;
/// `origin` attribute — getter.
get-origin: func(self: hyperlink-element-utils-handle) -> string;
/// `protocol` attribute — getter.
get-protocol: func(self: hyperlink-element-utils-handle) -> string;
/// `protocol` attribute — setter.
set-protocol: func(self: hyperlink-element-utils-handle, value: string);
/// `username` attribute — getter.
get-username: func(self: hyperlink-element-utils-handle) -> string;
/// `username` attribute — setter.
set-username: func(self: hyperlink-element-utils-handle, value: string);
/// `password` attribute — getter.
get-password: func(self: hyperlink-element-utils-handle) -> string;
/// `password` attribute — setter.
set-password: func(self: hyperlink-element-utils-handle, value: string);
/// `host` attribute — getter.
get-host: func(self: hyperlink-element-utils-handle) -> string;
/// `host` attribute — setter.
set-host: func(self: hyperlink-element-utils-handle, value: string);
/// `hostname` attribute — getter.
get-hostname: func(self: hyperlink-element-utils-handle) -> string;
/// `hostname` attribute — setter.
set-hostname: func(self: hyperlink-element-utils-handle, value: string);
/// `port` attribute — getter.
get-port: func(self: hyperlink-element-utils-handle) -> string;
/// `port` attribute — setter.
set-port: func(self: hyperlink-element-utils-handle, value: string);
/// `pathname` attribute — getter.
get-pathname: func(self: hyperlink-element-utils-handle) -> string;
/// `pathname` attribute — setter.
set-pathname: func(self: hyperlink-element-utils-handle, value: string);
/// `search` attribute — getter.
get-search: func(self: hyperlink-element-utils-handle) -> string;
/// `search` attribute — setter.
set-search: func(self: hyperlink-element-utils-handle, value: string);
/// `hash` attribute — getter.
get-hash: func(self: hyperlink-element-utils-handle) -> string;
/// `hash` attribute — setter.
set-hash: func(self: hyperlink-element-utils-handle, value: string);
}
interface html-hyperlink-element-utils {
/// Opaque handle to a host-side `HTMLHyperlinkElementUtils` instance.
type html-hyperlink-element-utils-handle = u64;
/// `href` attribute — getter.
get-href: func(self: html-hyperlink-element-utils-handle) -> string;
/// `href` attribute — setter.
set-href: func(self: html-hyperlink-element-utils-handle, value: string);
}
interface html-mod-element {
/// Opaque handle to a host-side `HTMLModElement` instance.
type html-mod-element-handle = u64;
/// `cite` attribute — getter.
get-cite: func(self: html-mod-element-handle) -> string;
/// `cite` attribute — setter.
set-cite: func(self: html-mod-element-handle, value: string);
/// `dateTime` attribute — getter.
get-date-time: func(self: html-mod-element-handle) -> string;
/// `dateTime` attribute — setter.
set-date-time: func(self: html-mod-element-handle, value: string);
}
interface html-source-element {
/// Opaque handle to a host-side `HTMLSourceElement` instance.
type html-source-element-handle = u64;
/// `src` attribute — getter.
get-src: func(self: html-source-element-handle) -> string;
/// `src` attribute — setter.
set-src: func(self: html-source-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-source-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: html-source-element-handle, value: string);
/// `srcset` attribute — getter.
get-srcset: func(self: html-source-element-handle) -> string;
/// `srcset` attribute — setter.
set-srcset: func(self: html-source-element-handle, value: string);
/// `sizes` attribute — getter.
get-sizes: func(self: html-source-element-handle) -> string;
/// `sizes` attribute — setter.
set-sizes: func(self: html-source-element-handle, value: string);
/// `media` attribute — getter.
get-media: func(self: html-source-element-handle) -> string;
/// `media` attribute — setter.
set-media: func(self: html-source-element-handle, value: string);
/// `width` attribute — getter.
get-width: func(self: html-source-element-handle) -> u32;
/// `width` attribute — setter.
set-width: func(self: html-source-element-handle, value: u32);
/// `height` attribute — getter.
get-height: func(self: html-source-element-handle) -> u32;
/// `height` attribute — setter.
set-height: func(self: html-source-element-handle, value: u32);
}
interface htmli-frame-element {
/// Opaque handle to a host-side `HTMLIFrameElement` instance.
type htmli-frame-element-handle = u64;
/// `src` attribute — getter.
get-src: func(self: htmli-frame-element-handle) -> string;
/// `src` attribute — setter.
set-src: func(self: htmli-frame-element-handle, value: string);
/// `srcdoc` attribute — getter.
get-srcdoc: func(self: htmli-frame-element-handle) -> string;
/// `srcdoc` attribute — setter.
set-srcdoc: func(self: htmli-frame-element-handle, value: string);
/// `name` attribute — getter.
get-name: func(self: htmli-frame-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: htmli-frame-element-handle, value: string);
/// `sandbox` attribute — getter.
get-sandbox: func(self: htmli-frame-element-handle) -> u64;
/// `allow` attribute — getter.
get-allow: func(self: htmli-frame-element-handle) -> string;
/// `allow` attribute — setter.
set-allow: func(self: htmli-frame-element-handle, value: string);
/// `allowFullscreen` attribute — getter.
get-allow-fullscreen: func(self: htmli-frame-element-handle) -> bool;
/// `allowFullscreen` attribute — setter.
set-allow-fullscreen: func(self: htmli-frame-element-handle, value: bool);
/// `width` attribute — getter.
get-width: func(self: htmli-frame-element-handle) -> string;
/// `width` attribute — setter.
set-width: func(self: htmli-frame-element-handle, value: string);
/// `height` attribute — getter.
get-height: func(self: htmli-frame-element-handle) -> string;
/// `height` attribute — setter.
set-height: func(self: htmli-frame-element-handle, value: string);
/// `referrerPolicy` attribute — getter.
get-referrer-policy: func(self: htmli-frame-element-handle) -> string;
/// `referrerPolicy` attribute — setter.
set-referrer-policy: func(self: htmli-frame-element-handle, value: string);
/// `loading` attribute — getter.
get-loading: func(self: htmli-frame-element-handle) -> string;
/// `loading` attribute — setter.
set-loading: func(self: htmli-frame-element-handle, value: string);
/// `contentDocument` attribute — getter.
get-content-document: func(self: htmli-frame-element-handle) -> option<u64>;
/// `contentWindow` attribute — getter.
get-content-window: func(self: htmli-frame-element-handle) -> option<u64>;
/// `getSVGDocument()` operation.
get-svg-document: func(self: htmli-frame-element-handle) -> option<u64>;
/// `align` attribute — getter.
get-align: func(self: htmli-frame-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: htmli-frame-element-handle, value: string);
/// `scrolling` attribute — getter.
get-scrolling: func(self: htmli-frame-element-handle) -> string;
/// `scrolling` attribute — setter.
set-scrolling: func(self: htmli-frame-element-handle, value: string);
/// `frameBorder` attribute — getter.
get-frame-border: func(self: htmli-frame-element-handle) -> string;
/// `frameBorder` attribute — setter.
set-frame-border: func(self: htmli-frame-element-handle, value: string);
/// `longDesc` attribute — getter.
get-long-desc: func(self: htmli-frame-element-handle) -> string;
/// `longDesc` attribute — setter.
set-long-desc: func(self: htmli-frame-element-handle, value: string);
/// `marginHeight` attribute — getter.
get-margin-height: func(self: htmli-frame-element-handle) -> string;
/// `marginHeight` attribute — setter.
set-margin-height: func(self: htmli-frame-element-handle, value: string);
/// `marginWidth` attribute — getter.
get-margin-width: func(self: htmli-frame-element-handle) -> string;
/// `marginWidth` attribute — setter.
set-margin-width: func(self: htmli-frame-element-handle, value: string);
}
interface html-embed-element {
/// Opaque handle to a host-side `HTMLEmbedElement` instance.
type html-embed-element-handle = u64;
/// `src` attribute — getter.
get-src: func(self: html-embed-element-handle) -> string;
/// `src` attribute — setter.
set-src: func(self: html-embed-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-embed-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: html-embed-element-handle, value: string);
/// `width` attribute — getter.
get-width: func(self: html-embed-element-handle) -> string;
/// `width` attribute — setter.
set-width: func(self: html-embed-element-handle, value: string);
/// `height` attribute — getter.
get-height: func(self: html-embed-element-handle) -> string;
/// `height` attribute — setter.
set-height: func(self: html-embed-element-handle, value: string);
/// `getSVGDocument()` operation.
get-svg-document: func(self: html-embed-element-handle) -> option<u64>;
/// `align` attribute — getter.
get-align: func(self: html-embed-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-embed-element-handle, value: string);
/// `name` attribute — getter.
get-name: func(self: html-embed-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-embed-element-handle, value: string);
}
interface html-object-element {
/// Opaque handle to a host-side `HTMLObjectElement` instance.
type html-object-element-handle = u64;
/// `data` attribute — getter.
get-data: func(self: html-object-element-handle) -> string;
/// `data` attribute — setter.
set-data: func(self: html-object-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-object-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: html-object-element-handle, value: string);
/// `name` attribute — getter.
get-name: func(self: html-object-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-object-element-handle, value: string);
/// `form` attribute — getter.
get-form: func(self: html-object-element-handle) -> option<u64>;
/// `width` attribute — getter.
get-width: func(self: html-object-element-handle) -> string;
/// `width` attribute — setter.
set-width: func(self: html-object-element-handle, value: string);
/// `height` attribute — getter.
get-height: func(self: html-object-element-handle) -> string;
/// `height` attribute — setter.
set-height: func(self: html-object-element-handle, value: string);
/// `contentDocument` attribute — getter.
get-content-document: func(self: html-object-element-handle) -> option<u64>;
/// `contentWindow` attribute — getter.
get-content-window: func(self: html-object-element-handle) -> option<u64>;
/// `getSVGDocument()` operation.
get-svg-document: func(self: html-object-element-handle) -> option<u64>;
/// `willValidate` attribute — getter.
get-will-validate: func(self: html-object-element-handle) -> bool;
/// `validity` attribute — getter.
get-validity: func(self: html-object-element-handle) -> u64;
/// `validationMessage` attribute — getter.
get-validation-message: func(self: html-object-element-handle) -> string;
/// `checkValidity()` operation.
check-validity: func(self: html-object-element-handle) -> bool;
/// `reportValidity()` operation.
report-validity: func(self: html-object-element-handle) -> bool;
/// `setCustomValidity()` operation.
set-custom-validity: func(self: html-object-element-handle, error: string);
/// `align` attribute — getter.
get-align: func(self: html-object-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-object-element-handle, value: string);
/// `archive` attribute — getter.
get-archive: func(self: html-object-element-handle) -> string;
/// `archive` attribute — setter.
set-archive: func(self: html-object-element-handle, value: string);
/// `code` attribute — getter.
get-code: func(self: html-object-element-handle) -> string;
/// `code` attribute — setter.
set-code: func(self: html-object-element-handle, value: string);
/// `declare` attribute — getter.
get-declare: func(self: html-object-element-handle) -> bool;
/// `declare` attribute — setter.
set-declare: func(self: html-object-element-handle, value: bool);
/// `hspace` attribute — getter.
get-hspace: func(self: html-object-element-handle) -> u32;
/// `hspace` attribute — setter.
set-hspace: func(self: html-object-element-handle, value: u32);
/// `standby` attribute — getter.
get-standby: func(self: html-object-element-handle) -> string;
/// `standby` attribute — setter.
set-standby: func(self: html-object-element-handle, value: string);
/// `vspace` attribute — getter.
get-vspace: func(self: html-object-element-handle) -> u32;
/// `vspace` attribute — setter.
set-vspace: func(self: html-object-element-handle, value: u32);
/// `codeBase` attribute — getter.
get-code-base: func(self: html-object-element-handle) -> string;
/// `codeBase` attribute — setter.
set-code-base: func(self: html-object-element-handle, value: string);
/// `codeType` attribute — getter.
get-code-type: func(self: html-object-element-handle) -> string;
/// `codeType` attribute — setter.
set-code-type: func(self: html-object-element-handle, value: string);
/// `useMap` attribute — getter.
get-use-map: func(self: html-object-element-handle) -> string;
/// `useMap` attribute — setter.
set-use-map: func(self: html-object-element-handle, value: string);
/// `border` attribute — getter.
get-border: func(self: html-object-element-handle) -> string;
/// `border` attribute — setter.
set-border: func(self: html-object-element-handle, value: string);
}
interface html-video-element {
/// Opaque handle to a host-side `HTMLVideoElement` instance.
type html-video-element-handle = u64;
/// `width` attribute — getter.
get-width: func(self: html-video-element-handle) -> u32;
/// `width` attribute — setter.
set-width: func(self: html-video-element-handle, value: u32);
/// `height` attribute — getter.
get-height: func(self: html-video-element-handle) -> u32;
/// `height` attribute — setter.
set-height: func(self: html-video-element-handle, value: u32);
/// `videoWidth` attribute — getter.
get-video-width: func(self: html-video-element-handle) -> u32;
/// `videoHeight` attribute — getter.
get-video-height: func(self: html-video-element-handle) -> u32;
/// `poster` attribute — getter.
get-poster: func(self: html-video-element-handle) -> string;
/// `poster` attribute — setter.
set-poster: func(self: html-video-element-handle, value: string);
/// `playsInline` attribute — getter.
get-plays-inline: func(self: html-video-element-handle) -> bool;
/// `playsInline` attribute — setter.
set-plays-inline: func(self: html-video-element-handle, value: bool);
}
interface html-track-element {
/// Opaque handle to a host-side `HTMLTrackElement` instance.
type html-track-element-handle = u64;
/// `kind` attribute — getter.
get-kind: func(self: html-track-element-handle) -> string;
/// `kind` attribute — setter.
set-kind: func(self: html-track-element-handle, value: string);
/// `src` attribute — getter.
get-src: func(self: html-track-element-handle) -> string;
/// `src` attribute — setter.
set-src: func(self: html-track-element-handle, value: string);
/// `srclang` attribute — getter.
get-srclang: func(self: html-track-element-handle) -> string;
/// `srclang` attribute — setter.
set-srclang: func(self: html-track-element-handle, value: string);
/// `label` attribute — getter.
get-label: func(self: html-track-element-handle) -> string;
/// `label` attribute — setter.
set-label: func(self: html-track-element-handle, value: string);
/// `default` attribute — getter.
get-default: func(self: html-track-element-handle) -> bool;
/// `default` attribute — setter.
set-default: func(self: html-track-element-handle, value: bool);
/// `readyState` attribute — getter.
get-ready-state: func(self: html-track-element-handle) -> u16;
/// `track` attribute — getter.
get-track: func(self: html-track-element-handle) -> u64;
}
interface html-media-element {
/// Opaque handle to a host-side `HTMLMediaElement` instance.
type html-media-element-handle = u64;
/// `error` attribute — getter.
get-error: func(self: html-media-element-handle) -> option<u64>;
/// `src` attribute — getter.
get-src: func(self: html-media-element-handle) -> string;
/// `src` attribute — setter.
set-src: func(self: html-media-element-handle, value: string);
/// `srcObject` attribute — getter.
get-src-object: func(self: html-media-element-handle) -> option<u64>;
/// `srcObject` attribute — setter.
set-src-object: func(self: html-media-element-handle, value: option<u64>);
/// `currentSrc` attribute — getter.
get-current-src: func(self: html-media-element-handle) -> string;
/// `crossOrigin` attribute — getter.
get-cross-origin: func(self: html-media-element-handle) -> option<string>;
/// `crossOrigin` attribute — setter.
set-cross-origin: func(self: html-media-element-handle, value: option<string>);
/// `networkState` attribute — getter.
get-network-state: func(self: html-media-element-handle) -> u16;
/// `preload` attribute — getter.
get-preload: func(self: html-media-element-handle) -> string;
/// `preload` attribute — setter.
set-preload: func(self: html-media-element-handle, value: string);
/// `buffered` attribute — getter.
get-buffered: func(self: html-media-element-handle) -> u64;
/// `load()` operation.
load: func(self: html-media-element-handle);
/// `canPlayType()` operation.
can-play-type: func(self: html-media-element-handle, %type: string) -> u64;
/// `readyState` attribute — getter.
get-ready-state: func(self: html-media-element-handle) -> u16;
/// `seeking` attribute — getter.
get-seeking: func(self: html-media-element-handle) -> bool;
/// `currentTime` attribute — getter.
get-current-time: func(self: html-media-element-handle) -> f64;
/// `currentTime` attribute — setter.
set-current-time: func(self: html-media-element-handle, value: f64);
/// `fastSeek()` operation.
fast-seek: func(self: html-media-element-handle, time: f64);
/// `duration` attribute — getter.
get-duration: func(self: html-media-element-handle) -> f64;
/// `getStartDate()` operation.
get-start-date: func(self: html-media-element-handle) -> u64;
/// `paused` attribute — getter.
get-paused: func(self: html-media-element-handle) -> bool;
/// `defaultPlaybackRate` attribute — getter.
get-default-playback-rate: func(self: html-media-element-handle) -> f64;
/// `defaultPlaybackRate` attribute — setter.
set-default-playback-rate: func(self: html-media-element-handle, value: f64);
/// `playbackRate` attribute — getter.
get-playback-rate: func(self: html-media-element-handle) -> f64;
/// `playbackRate` attribute — setter.
set-playback-rate: func(self: html-media-element-handle, value: f64);
/// `preservesPitch` attribute — getter.
get-preserves-pitch: func(self: html-media-element-handle) -> bool;
/// `preservesPitch` attribute — setter.
set-preserves-pitch: func(self: html-media-element-handle, value: bool);
/// `played` attribute — getter.
get-played: func(self: html-media-element-handle) -> u64;
/// `seekable` attribute — getter.
get-seekable: func(self: html-media-element-handle) -> u64;
/// `ended` attribute — getter.
get-ended: func(self: html-media-element-handle) -> bool;
/// `autoplay` attribute — getter.
get-autoplay: func(self: html-media-element-handle) -> bool;
/// `autoplay` attribute — setter.
set-autoplay: func(self: html-media-element-handle, value: bool);
/// `loop` attribute — getter.
get-loop: func(self: html-media-element-handle) -> bool;
/// `loop` attribute — setter.
set-loop: func(self: html-media-element-handle, value: bool);
/// `play()` operation.
play: func(self: html-media-element-handle) -> u64;
/// `pause()` operation.
pause: func(self: html-media-element-handle);
/// `controls` attribute — getter.
get-controls: func(self: html-media-element-handle) -> bool;
/// `controls` attribute — setter.
set-controls: func(self: html-media-element-handle, value: bool);
/// `volume` attribute — getter.
get-volume: func(self: html-media-element-handle) -> f64;
/// `volume` attribute — setter.
set-volume: func(self: html-media-element-handle, value: f64);
/// `muted` attribute — getter.
get-muted: func(self: html-media-element-handle) -> bool;
/// `muted` attribute — setter.
set-muted: func(self: html-media-element-handle, value: bool);
/// `defaultMuted` attribute — getter.
get-default-muted: func(self: html-media-element-handle) -> bool;
/// `defaultMuted` attribute — setter.
set-default-muted: func(self: html-media-element-handle, value: bool);
/// `loading` attribute — getter.
get-loading: func(self: html-media-element-handle) -> string;
/// `loading` attribute — setter.
set-loading: func(self: html-media-element-handle, value: string);
/// `audioTracks` attribute — getter.
get-audio-tracks: func(self: html-media-element-handle) -> u64;
/// `videoTracks` attribute — getter.
get-video-tracks: func(self: html-media-element-handle) -> u64;
/// `textTracks` attribute — getter.
get-text-tracks: func(self: html-media-element-handle) -> u64;
/// `addTextTrack()` operation.
add-text-track: func(self: html-media-element-handle, kind: u64, label: option<string>, language: option<string>) -> u64;
}
interface media-error {
/// Opaque handle to a host-side `MediaError` instance.
type media-error-handle = u64;
/// `code` attribute — getter.
get-code: func(self: media-error-handle) -> u16;
/// `message` attribute — getter.
get-message: func(self: media-error-handle) -> string;
}
interface audio-track-list {
/// Opaque handle to a host-side `AudioTrackList` instance.
type audio-track-list-handle = u64;
/// `length` attribute — getter.
get-length: func(self: audio-track-list-handle) -> u32;
/// `AudioTrack()` operation.
audio-track: func(self: audio-track-list-handle, index: u32);
/// `getTrackById()` operation.
get-track-by-id: func(self: audio-track-list-handle, id: string) -> option<u64>;
/// `onchange` attribute — getter.
get-onchange: func(self: audio-track-list-handle) -> u64;
/// `onchange` attribute — setter.
set-onchange: func(self: audio-track-list-handle, value: u64);
/// `onaddtrack` attribute — getter.
get-onaddtrack: func(self: audio-track-list-handle) -> u64;
/// `onaddtrack` attribute — setter.
set-onaddtrack: func(self: audio-track-list-handle, value: u64);
/// `onremovetrack` attribute — getter.
get-onremovetrack: func(self: audio-track-list-handle) -> u64;
/// `onremovetrack` attribute — setter.
set-onremovetrack: func(self: audio-track-list-handle, value: u64);
}
interface audio-track {
/// Opaque handle to a host-side `AudioTrack` instance.
type audio-track-handle = u64;
/// `id` attribute — getter.
get-id: func(self: audio-track-handle) -> string;
/// `kind` attribute — getter.
get-kind: func(self: audio-track-handle) -> string;
/// `label` attribute — getter.
get-label: func(self: audio-track-handle) -> string;
/// `language` attribute — getter.
get-language: func(self: audio-track-handle) -> string;
/// `enabled` attribute — getter.
get-enabled: func(self: audio-track-handle) -> bool;
/// `enabled` attribute — setter.
set-enabled: func(self: audio-track-handle, value: bool);
}
interface video-track-list {
/// Opaque handle to a host-side `VideoTrackList` instance.
type video-track-list-handle = u64;
/// `length` attribute — getter.
get-length: func(self: video-track-list-handle) -> u32;
/// `VideoTrack()` operation.
video-track: func(self: video-track-list-handle, index: u32);
/// `getTrackById()` operation.
get-track-by-id: func(self: video-track-list-handle, id: string) -> option<u64>;
/// `selectedIndex` attribute — getter.
get-selected-index: func(self: video-track-list-handle) -> s32;
/// `onchange` attribute — getter.
get-onchange: func(self: video-track-list-handle) -> u64;
/// `onchange` attribute — setter.
set-onchange: func(self: video-track-list-handle, value: u64);
/// `onaddtrack` attribute — getter.
get-onaddtrack: func(self: video-track-list-handle) -> u64;
/// `onaddtrack` attribute — setter.
set-onaddtrack: func(self: video-track-list-handle, value: u64);
/// `onremovetrack` attribute — getter.
get-onremovetrack: func(self: video-track-list-handle) -> u64;
/// `onremovetrack` attribute — setter.
set-onremovetrack: func(self: video-track-list-handle, value: u64);
}
interface video-track {
/// Opaque handle to a host-side `VideoTrack` instance.
type video-track-handle = u64;
/// `id` attribute — getter.
get-id: func(self: video-track-handle) -> string;
/// `kind` attribute — getter.
get-kind: func(self: video-track-handle) -> string;
/// `label` attribute — getter.
get-label: func(self: video-track-handle) -> string;
/// `language` attribute — getter.
get-language: func(self: video-track-handle) -> string;
/// `selected` attribute — getter.
get-selected: func(self: video-track-handle) -> bool;
/// `selected` attribute — setter.
set-selected: func(self: video-track-handle, value: bool);
}
interface text-track-list {
/// Opaque handle to a host-side `TextTrackList` instance.
type text-track-list-handle = u64;
/// `length` attribute — getter.
get-length: func(self: text-track-list-handle) -> u32;
/// `TextTrack()` operation.
text-track: func(self: text-track-list-handle, index: u32);
/// `getTrackById()` operation.
get-track-by-id: func(self: text-track-list-handle, id: string) -> option<u64>;
/// `onchange` attribute — getter.
get-onchange: func(self: text-track-list-handle) -> u64;
/// `onchange` attribute — setter.
set-onchange: func(self: text-track-list-handle, value: u64);
/// `onaddtrack` attribute — getter.
get-onaddtrack: func(self: text-track-list-handle) -> u64;
/// `onaddtrack` attribute — setter.
set-onaddtrack: func(self: text-track-list-handle, value: u64);
/// `onremovetrack` attribute — getter.
get-onremovetrack: func(self: text-track-list-handle) -> u64;
/// `onremovetrack` attribute — setter.
set-onremovetrack: func(self: text-track-list-handle, value: u64);
}
interface text-track {
/// Opaque handle to a host-side `TextTrack` instance.
type text-track-handle = u64;
/// `kind` attribute — getter.
get-kind: func(self: text-track-handle) -> u64;
/// `label` attribute — getter.
get-label: func(self: text-track-handle) -> string;
/// `language` attribute — getter.
get-language: func(self: text-track-handle) -> string;
/// `id` attribute — getter.
get-id: func(self: text-track-handle) -> string;
/// `inBandMetadataTrackDispatchType` attribute — getter.
get-in-band-metadata-track-dispatch-type: func(self: text-track-handle) -> string;
/// `mode` attribute — getter.
get-mode: func(self: text-track-handle) -> u64;
/// `mode` attribute — setter.
set-mode: func(self: text-track-handle, value: u64);
/// `cues` attribute — getter.
get-cues: func(self: text-track-handle) -> option<u64>;
/// `activeCues` attribute — getter.
get-active-cues: func(self: text-track-handle) -> option<u64>;
/// `addCue()` operation.
add-cue: func(self: text-track-handle, cue: u64);
/// `removeCue()` operation.
remove-cue: func(self: text-track-handle, cue: u64);
/// `oncuechange` attribute — getter.
get-oncuechange: func(self: text-track-handle) -> u64;
/// `oncuechange` attribute — setter.
set-oncuechange: func(self: text-track-handle, value: u64);
}
interface text-track-cue-list {
/// Opaque handle to a host-side `TextTrackCueList` instance.
type text-track-cue-list-handle = u64;
/// `length` attribute — getter.
get-length: func(self: text-track-cue-list-handle) -> u32;
/// `TextTrackCue()` operation.
text-track-cue: func(self: text-track-cue-list-handle, index: u32);
/// `getCueById()` operation.
get-cue-by-id: func(self: text-track-cue-list-handle, id: string) -> option<u64>;
}
interface text-track-cue {
/// Opaque handle to a host-side `TextTrackCue` instance.
type text-track-cue-handle = u64;
/// `track` attribute — getter.
get-track: func(self: text-track-cue-handle) -> option<u64>;
/// `id` attribute — getter.
get-id: func(self: text-track-cue-handle) -> string;
/// `id` attribute — setter.
set-id: func(self: text-track-cue-handle, value: string);
/// `startTime` attribute — getter.
get-start-time: func(self: text-track-cue-handle) -> f64;
/// `startTime` attribute — setter.
set-start-time: func(self: text-track-cue-handle, value: f64);
/// `endTime` attribute — getter.
get-end-time: func(self: text-track-cue-handle) -> f64;
/// `endTime` attribute — setter.
set-end-time: func(self: text-track-cue-handle, value: f64);
/// `pauseOnExit` attribute — getter.
get-pause-on-exit: func(self: text-track-cue-handle) -> bool;
/// `pauseOnExit` attribute — setter.
set-pause-on-exit: func(self: text-track-cue-handle, value: bool);
/// `onenter` attribute — getter.
get-onenter: func(self: text-track-cue-handle) -> u64;
/// `onenter` attribute — setter.
set-onenter: func(self: text-track-cue-handle, value: u64);
/// `onexit` attribute — getter.
get-onexit: func(self: text-track-cue-handle) -> u64;
/// `onexit` attribute — setter.
set-onexit: func(self: text-track-cue-handle, value: u64);
}
interface time-ranges {
/// Opaque handle to a host-side `TimeRanges` instance.
type time-ranges-handle = u64;
/// `length` attribute — getter.
get-length: func(self: time-ranges-handle) -> u32;
/// `start()` operation.
start: func(self: time-ranges-handle, index: u32) -> f64;
/// `end()` operation.
end: func(self: time-ranges-handle, index: u32) -> f64;
}
interface track-event {
/// Opaque handle to a host-side `TrackEvent` instance.
type track-event-handle = u64;
/// `track` attribute — getter.
get-track: func(self: track-event-handle) -> option<u64>;
}
interface html-map-element {
/// Opaque handle to a host-side `HTMLMapElement` instance.
type html-map-element-handle = u64;
/// `name` attribute — getter.
get-name: func(self: html-map-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-map-element-handle, value: string);
/// `areas` attribute — getter.
get-areas: func(self: html-map-element-handle) -> u64;
}
interface html-area-element {
/// Opaque handle to a host-side `HTMLAreaElement` instance.
type html-area-element-handle = u64;
/// `alt` attribute — getter.
get-alt: func(self: html-area-element-handle) -> string;
/// `alt` attribute — setter.
set-alt: func(self: html-area-element-handle, value: string);
/// `coords` attribute — getter.
get-coords: func(self: html-area-element-handle) -> string;
/// `coords` attribute — setter.
set-coords: func(self: html-area-element-handle, value: string);
/// `shape` attribute — getter.
get-shape: func(self: html-area-element-handle) -> string;
/// `shape` attribute — setter.
set-shape: func(self: html-area-element-handle, value: string);
/// `target` attribute — getter.
get-target: func(self: html-area-element-handle) -> string;
/// `target` attribute — setter.
set-target: func(self: html-area-element-handle, value: string);
/// `download` attribute — getter.
get-download: func(self: html-area-element-handle) -> string;
/// `download` attribute — setter.
set-download: func(self: html-area-element-handle, value: string);
/// `ping` attribute — getter.
get-ping: func(self: html-area-element-handle) -> string;
/// `ping` attribute — setter.
set-ping: func(self: html-area-element-handle, value: string);
/// `rel` attribute — getter.
get-rel: func(self: html-area-element-handle) -> string;
/// `rel` attribute — setter.
set-rel: func(self: html-area-element-handle, value: string);
/// `relList` attribute — getter.
get-rel-list: func(self: html-area-element-handle) -> u64;
/// `referrerPolicy` attribute — getter.
get-referrer-policy: func(self: html-area-element-handle) -> string;
/// `referrerPolicy` attribute — setter.
set-referrer-policy: func(self: html-area-element-handle, value: string);
/// `noHref` attribute — getter.
get-no-href: func(self: html-area-element-handle) -> bool;
/// `noHref` attribute — setter.
set-no-href: func(self: html-area-element-handle, value: bool);
}
interface html-table-element {
/// Opaque handle to a host-side `HTMLTableElement` instance.
type html-table-element-handle = u64;
/// `caption` attribute — getter.
get-caption: func(self: html-table-element-handle) -> option<u64>;
/// `caption` attribute — setter.
set-caption: func(self: html-table-element-handle, value: option<u64>);
/// `createCaption()` operation.
create-caption: func(self: html-table-element-handle) -> u64;
/// `deleteCaption()` operation.
delete-caption: func(self: html-table-element-handle);
/// `tHead` attribute — getter.
get-t-head: func(self: html-table-element-handle) -> option<u64>;
/// `tHead` attribute — setter.
set-t-head: func(self: html-table-element-handle, value: option<u64>);
/// `createTHead()` operation.
create-t-head: func(self: html-table-element-handle) -> u64;
/// `deleteTHead()` operation.
delete-t-head: func(self: html-table-element-handle);
/// `tFoot` attribute — getter.
get-t-foot: func(self: html-table-element-handle) -> option<u64>;
/// `tFoot` attribute — setter.
set-t-foot: func(self: html-table-element-handle, value: option<u64>);
/// `createTFoot()` operation.
create-t-foot: func(self: html-table-element-handle) -> u64;
/// `deleteTFoot()` operation.
delete-t-foot: func(self: html-table-element-handle);
/// `tBodies` attribute — getter.
get-t-bodies: func(self: html-table-element-handle) -> u64;
/// `createTBody()` operation.
create-t-body: func(self: html-table-element-handle) -> u64;
/// `rows` attribute — getter.
get-rows: func(self: html-table-element-handle) -> u64;
/// `insertRow()` operation.
insert-row: func(self: html-table-element-handle, index: option<s32>) -> u64;
/// `deleteRow()` operation.
delete-row: func(self: html-table-element-handle, index: s32);
/// `align` attribute — getter.
get-align: func(self: html-table-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-table-element-handle, value: string);
/// `border` attribute — getter.
get-border: func(self: html-table-element-handle) -> string;
/// `border` attribute — setter.
set-border: func(self: html-table-element-handle, value: string);
/// `frame` attribute — getter.
get-frame: func(self: html-table-element-handle) -> string;
/// `frame` attribute — setter.
set-frame: func(self: html-table-element-handle, value: string);
/// `rules` attribute — getter.
get-rules: func(self: html-table-element-handle) -> string;
/// `rules` attribute — setter.
set-rules: func(self: html-table-element-handle, value: string);
/// `summary` attribute — getter.
get-summary: func(self: html-table-element-handle) -> string;
/// `summary` attribute — setter.
set-summary: func(self: html-table-element-handle, value: string);
/// `width` attribute — getter.
get-width: func(self: html-table-element-handle) -> string;
/// `width` attribute — setter.
set-width: func(self: html-table-element-handle, value: string);
/// `bgColor` attribute — getter.
get-bg-color: func(self: html-table-element-handle) -> string;
/// `bgColor` attribute — setter.
set-bg-color: func(self: html-table-element-handle, value: string);
/// `cellPadding` attribute — getter.
get-cell-padding: func(self: html-table-element-handle) -> string;
/// `cellPadding` attribute — setter.
set-cell-padding: func(self: html-table-element-handle, value: string);
/// `cellSpacing` attribute — getter.
get-cell-spacing: func(self: html-table-element-handle) -> string;
/// `cellSpacing` attribute — setter.
set-cell-spacing: func(self: html-table-element-handle, value: string);
}
interface html-table-caption-element {
/// Opaque handle to a host-side `HTMLTableCaptionElement` instance.
type html-table-caption-element-handle = u64;
/// `align` attribute — getter.
get-align: func(self: html-table-caption-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-table-caption-element-handle, value: string);
}
interface html-table-col-element {
/// Opaque handle to a host-side `HTMLTableColElement` instance.
type html-table-col-element-handle = u64;
/// `span` attribute — getter.
get-span: func(self: html-table-col-element-handle) -> u32;
/// `span` attribute — setter.
set-span: func(self: html-table-col-element-handle, value: u32);
/// `align` attribute — getter.
get-align: func(self: html-table-col-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-table-col-element-handle, value: string);
/// `ch` attribute — getter.
get-ch: func(self: html-table-col-element-handle) -> string;
/// `ch` attribute — setter.
set-ch: func(self: html-table-col-element-handle, value: string);
/// `chOff` attribute — getter.
get-ch-off: func(self: html-table-col-element-handle) -> string;
/// `chOff` attribute — setter.
set-ch-off: func(self: html-table-col-element-handle, value: string);
/// `vAlign` attribute — getter.
get-v-align: func(self: html-table-col-element-handle) -> string;
/// `vAlign` attribute — setter.
set-v-align: func(self: html-table-col-element-handle, value: string);
/// `width` attribute — getter.
get-width: func(self: html-table-col-element-handle) -> string;
/// `width` attribute — setter.
set-width: func(self: html-table-col-element-handle, value: string);
}
interface html-table-section-element {
/// Opaque handle to a host-side `HTMLTableSectionElement` instance.
type html-table-section-element-handle = u64;
/// `rows` attribute — getter.
get-rows: func(self: html-table-section-element-handle) -> u64;
/// `insertRow()` operation.
insert-row: func(self: html-table-section-element-handle, index: option<s32>) -> u64;
/// `deleteRow()` operation.
delete-row: func(self: html-table-section-element-handle, index: s32);
/// `align` attribute — getter.
get-align: func(self: html-table-section-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-table-section-element-handle, value: string);
/// `ch` attribute — getter.
get-ch: func(self: html-table-section-element-handle) -> string;
/// `ch` attribute — setter.
set-ch: func(self: html-table-section-element-handle, value: string);
/// `chOff` attribute — getter.
get-ch-off: func(self: html-table-section-element-handle) -> string;
/// `chOff` attribute — setter.
set-ch-off: func(self: html-table-section-element-handle, value: string);
/// `vAlign` attribute — getter.
get-v-align: func(self: html-table-section-element-handle) -> string;
/// `vAlign` attribute — setter.
set-v-align: func(self: html-table-section-element-handle, value: string);
}
interface html-table-row-element {
/// Opaque handle to a host-side `HTMLTableRowElement` instance.
type html-table-row-element-handle = u64;
/// `rowIndex` attribute — getter.
get-row-index: func(self: html-table-row-element-handle) -> s32;
/// `sectionRowIndex` attribute — getter.
get-section-row-index: func(self: html-table-row-element-handle) -> s32;
/// `cells` attribute — getter.
get-cells: func(self: html-table-row-element-handle) -> u64;
/// `insertCell()` operation.
insert-cell: func(self: html-table-row-element-handle, index: option<s32>) -> u64;
/// `deleteCell()` operation.
delete-cell: func(self: html-table-row-element-handle, index: s32);
/// `align` attribute — getter.
get-align: func(self: html-table-row-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-table-row-element-handle, value: string);
/// `ch` attribute — getter.
get-ch: func(self: html-table-row-element-handle) -> string;
/// `ch` attribute — setter.
set-ch: func(self: html-table-row-element-handle, value: string);
/// `chOff` attribute — getter.
get-ch-off: func(self: html-table-row-element-handle) -> string;
/// `chOff` attribute — setter.
set-ch-off: func(self: html-table-row-element-handle, value: string);
/// `vAlign` attribute — getter.
get-v-align: func(self: html-table-row-element-handle) -> string;
/// `vAlign` attribute — setter.
set-v-align: func(self: html-table-row-element-handle, value: string);
/// `bgColor` attribute — getter.
get-bg-color: func(self: html-table-row-element-handle) -> string;
/// `bgColor` attribute — setter.
set-bg-color: func(self: html-table-row-element-handle, value: string);
}
interface html-table-cell-element {
/// Opaque handle to a host-side `HTMLTableCellElement` instance.
type html-table-cell-element-handle = u64;
/// `colSpan` attribute — getter.
get-col-span: func(self: html-table-cell-element-handle) -> u32;
/// `colSpan` attribute — setter.
set-col-span: func(self: html-table-cell-element-handle, value: u32);
/// `rowSpan` attribute — getter.
get-row-span: func(self: html-table-cell-element-handle) -> u32;
/// `rowSpan` attribute — setter.
set-row-span: func(self: html-table-cell-element-handle, value: u32);
/// `headers` attribute — getter.
get-headers: func(self: html-table-cell-element-handle) -> string;
/// `headers` attribute — setter.
set-headers: func(self: html-table-cell-element-handle, value: string);
/// `cellIndex` attribute — getter.
get-cell-index: func(self: html-table-cell-element-handle) -> s32;
/// `scope` attribute — getter.
get-scope: func(self: html-table-cell-element-handle) -> string;
/// `scope` attribute — setter.
set-scope: func(self: html-table-cell-element-handle, value: string);
/// `abbr` attribute — getter.
get-abbr: func(self: html-table-cell-element-handle) -> string;
/// `abbr` attribute — setter.
set-abbr: func(self: html-table-cell-element-handle, value: string);
/// `align` attribute — getter.
get-align: func(self: html-table-cell-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-table-cell-element-handle, value: string);
/// `axis` attribute — getter.
get-axis: func(self: html-table-cell-element-handle) -> string;
/// `axis` attribute — setter.
set-axis: func(self: html-table-cell-element-handle, value: string);
/// `height` attribute — getter.
get-height: func(self: html-table-cell-element-handle) -> string;
/// `height` attribute — setter.
set-height: func(self: html-table-cell-element-handle, value: string);
/// `width` attribute — getter.
get-width: func(self: html-table-cell-element-handle) -> string;
/// `width` attribute — setter.
set-width: func(self: html-table-cell-element-handle, value: string);
/// `ch` attribute — getter.
get-ch: func(self: html-table-cell-element-handle) -> string;
/// `ch` attribute — setter.
set-ch: func(self: html-table-cell-element-handle, value: string);
/// `chOff` attribute — getter.
get-ch-off: func(self: html-table-cell-element-handle) -> string;
/// `chOff` attribute — setter.
set-ch-off: func(self: html-table-cell-element-handle, value: string);
/// `noWrap` attribute — getter.
get-no-wrap: func(self: html-table-cell-element-handle) -> bool;
/// `noWrap` attribute — setter.
set-no-wrap: func(self: html-table-cell-element-handle, value: bool);
/// `vAlign` attribute — getter.
get-v-align: func(self: html-table-cell-element-handle) -> string;
/// `vAlign` attribute — setter.
set-v-align: func(self: html-table-cell-element-handle, value: string);
/// `bgColor` attribute — getter.
get-bg-color: func(self: html-table-cell-element-handle) -> string;
/// `bgColor` attribute — setter.
set-bg-color: func(self: html-table-cell-element-handle, value: string);
}
interface html-form-element {
/// Opaque handle to a host-side `HTMLFormElement` instance.
type html-form-element-handle = u64;
/// `acceptCharset` attribute — getter.
get-accept-charset: func(self: html-form-element-handle) -> string;
/// `acceptCharset` attribute — setter.
set-accept-charset: func(self: html-form-element-handle, value: string);
/// `action` attribute — getter.
get-action: func(self: html-form-element-handle) -> string;
/// `action` attribute — setter.
set-action: func(self: html-form-element-handle, value: string);
/// `autocomplete` attribute — getter.
get-autocomplete: func(self: html-form-element-handle) -> string;
/// `autocomplete` attribute — setter.
set-autocomplete: func(self: html-form-element-handle, value: string);
/// `enctype` attribute — getter.
get-enctype: func(self: html-form-element-handle) -> string;
/// `enctype` attribute — setter.
set-enctype: func(self: html-form-element-handle, value: string);
/// `encoding` attribute — getter.
get-encoding: func(self: html-form-element-handle) -> string;
/// `encoding` attribute — setter.
set-encoding: func(self: html-form-element-handle, value: string);
/// `method` attribute — getter.
get-method: func(self: html-form-element-handle) -> string;
/// `method` attribute — setter.
set-method: func(self: html-form-element-handle, value: string);
/// `name` attribute — getter.
get-name: func(self: html-form-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-form-element-handle, value: string);
/// `noValidate` attribute — getter.
get-no-validate: func(self: html-form-element-handle) -> bool;
/// `noValidate` attribute — setter.
set-no-validate: func(self: html-form-element-handle, value: bool);
/// `target` attribute — getter.
get-target: func(self: html-form-element-handle) -> string;
/// `target` attribute — setter.
set-target: func(self: html-form-element-handle, value: string);
/// `rel` attribute — getter.
get-rel: func(self: html-form-element-handle) -> string;
/// `rel` attribute — setter.
set-rel: func(self: html-form-element-handle, value: string);
/// `relList` attribute — getter.
get-rel-list: func(self: html-form-element-handle) -> u64;
/// `elements` attribute — getter.
get-elements: func(self: html-form-element-handle) -> u64;
/// `length` attribute — getter.
get-length: func(self: html-form-element-handle) -> u32;
/// `Element()` operation.
element: func(self: html-form-element-handle, index: u32);
/// `submit()` operation.
submit: func(self: html-form-element-handle);
/// `requestSubmit()` operation.
request-submit: func(self: html-form-element-handle, submitter: option<u64>);
/// `reset()` operation.
reset: func(self: html-form-element-handle);
/// `checkValidity()` operation.
check-validity: func(self: html-form-element-handle) -> bool;
/// `reportValidity()` operation.
report-validity: func(self: html-form-element-handle) -> bool;
}
interface html-label-element {
/// Opaque handle to a host-side `HTMLLabelElement` instance.
type html-label-element-handle = u64;
/// `form` attribute — getter.
get-form: func(self: html-label-element-handle) -> option<u64>;
/// `htmlFor` attribute — getter.
get-html-for: func(self: html-label-element-handle) -> string;
/// `htmlFor` attribute — setter.
set-html-for: func(self: html-label-element-handle, value: string);
/// `control` attribute — getter.
get-control: func(self: html-label-element-handle) -> option<u64>;
}
interface html-input-element {
/// Opaque handle to a host-side `HTMLInputElement` instance.
type html-input-element-handle = u64;
/// `accept` attribute — getter.
get-accept: func(self: html-input-element-handle) -> string;
/// `accept` attribute — setter.
set-accept: func(self: html-input-element-handle, value: string);
/// `alpha` attribute — getter.
get-alpha: func(self: html-input-element-handle) -> bool;
/// `alpha` attribute — setter.
set-alpha: func(self: html-input-element-handle, value: bool);
/// `alt` attribute — getter.
get-alt: func(self: html-input-element-handle) -> string;
/// `alt` attribute — setter.
set-alt: func(self: html-input-element-handle, value: string);
/// `autocomplete` attribute — getter.
get-autocomplete: func(self: html-input-element-handle) -> string;
/// `autocomplete` attribute — setter.
set-autocomplete: func(self: html-input-element-handle, value: string);
/// `defaultChecked` attribute — getter.
get-default-checked: func(self: html-input-element-handle) -> bool;
/// `defaultChecked` attribute — setter.
set-default-checked: func(self: html-input-element-handle, value: bool);
/// `checked` attribute — getter.
get-checked: func(self: html-input-element-handle) -> bool;
/// `checked` attribute — setter.
set-checked: func(self: html-input-element-handle, value: bool);
/// `colorSpace` attribute — getter.
get-color-space: func(self: html-input-element-handle) -> string;
/// `colorSpace` attribute — setter.
set-color-space: func(self: html-input-element-handle, value: string);
/// `dirName` attribute — getter.
get-dir-name: func(self: html-input-element-handle) -> string;
/// `dirName` attribute — setter.
set-dir-name: func(self: html-input-element-handle, value: string);
/// `disabled` attribute — getter.
get-disabled: func(self: html-input-element-handle) -> bool;
/// `disabled` attribute — setter.
set-disabled: func(self: html-input-element-handle, value: bool);
/// `form` attribute — getter.
get-form: func(self: html-input-element-handle) -> option<u64>;
/// `files` attribute — getter.
get-files: func(self: html-input-element-handle) -> option<u64>;
/// `files` attribute — setter.
set-files: func(self: html-input-element-handle, value: option<u64>);
/// `formAction` attribute — getter.
get-form-action: func(self: html-input-element-handle) -> string;
/// `formAction` attribute — setter.
set-form-action: func(self: html-input-element-handle, value: string);
/// `formEnctype` attribute — getter.
get-form-enctype: func(self: html-input-element-handle) -> string;
/// `formEnctype` attribute — setter.
set-form-enctype: func(self: html-input-element-handle, value: string);
/// `formMethod` attribute — getter.
get-form-method: func(self: html-input-element-handle) -> string;
/// `formMethod` attribute — setter.
set-form-method: func(self: html-input-element-handle, value: string);
/// `formNoValidate` attribute — getter.
get-form-no-validate: func(self: html-input-element-handle) -> bool;
/// `formNoValidate` attribute — setter.
set-form-no-validate: func(self: html-input-element-handle, value: bool);
/// `formTarget` attribute — getter.
get-form-target: func(self: html-input-element-handle) -> string;
/// `formTarget` attribute — setter.
set-form-target: func(self: html-input-element-handle, value: string);
/// `height` attribute — getter.
get-height: func(self: html-input-element-handle) -> u32;
/// `height` attribute — setter.
set-height: func(self: html-input-element-handle, value: u32);
/// `indeterminate` attribute — getter.
get-indeterminate: func(self: html-input-element-handle) -> bool;
/// `indeterminate` attribute — setter.
set-indeterminate: func(self: html-input-element-handle, value: bool);
/// `list` attribute — getter.
get-list: func(self: html-input-element-handle) -> option<u64>;
/// `max` attribute — getter.
get-max: func(self: html-input-element-handle) -> string;
/// `max` attribute — setter.
set-max: func(self: html-input-element-handle, value: string);
/// `maxLength` attribute — getter.
get-max-length: func(self: html-input-element-handle) -> s32;
/// `maxLength` attribute — setter.
set-max-length: func(self: html-input-element-handle, value: s32);
/// `min` attribute — getter.
get-min: func(self: html-input-element-handle) -> string;
/// `min` attribute — setter.
set-min: func(self: html-input-element-handle, value: string);
/// `minLength` attribute — getter.
get-min-length: func(self: html-input-element-handle) -> s32;
/// `minLength` attribute — setter.
set-min-length: func(self: html-input-element-handle, value: s32);
/// `multiple` attribute — getter.
get-multiple: func(self: html-input-element-handle) -> bool;
/// `multiple` attribute — setter.
set-multiple: func(self: html-input-element-handle, value: bool);
/// `name` attribute — getter.
get-name: func(self: html-input-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-input-element-handle, value: string);
/// `pattern` attribute — getter.
get-pattern: func(self: html-input-element-handle) -> string;
/// `pattern` attribute — setter.
set-pattern: func(self: html-input-element-handle, value: string);
/// `placeholder` attribute — getter.
get-placeholder: func(self: html-input-element-handle) -> string;
/// `placeholder` attribute — setter.
set-placeholder: func(self: html-input-element-handle, value: string);
/// `readOnly` attribute — getter.
get-read-only: func(self: html-input-element-handle) -> bool;
/// `readOnly` attribute — setter.
set-read-only: func(self: html-input-element-handle, value: bool);
/// `required` attribute — getter.
get-required: func(self: html-input-element-handle) -> bool;
/// `required` attribute — setter.
set-required: func(self: html-input-element-handle, value: bool);
/// `size` attribute — getter.
get-size: func(self: html-input-element-handle) -> u32;
/// `size` attribute — setter.
set-size: func(self: html-input-element-handle, value: u32);
/// `src` attribute — getter.
get-src: func(self: html-input-element-handle) -> string;
/// `src` attribute — setter.
set-src: func(self: html-input-element-handle, value: string);
/// `step` attribute — getter.
get-step: func(self: html-input-element-handle) -> string;
/// `step` attribute — setter.
set-step: func(self: html-input-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-input-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: html-input-element-handle, value: string);
/// `defaultValue` attribute — getter.
get-default-value: func(self: html-input-element-handle) -> string;
/// `defaultValue` attribute — setter.
set-default-value: func(self: html-input-element-handle, value: string);
/// `value` attribute — getter.
get-value: func(self: html-input-element-handle) -> string;
/// `value` attribute — setter.
set-value: func(self: html-input-element-handle, value: string);
/// `valueAsDate` attribute — getter.
get-value-as-date: func(self: html-input-element-handle) -> option<u64>;
/// `valueAsDate` attribute — setter.
set-value-as-date: func(self: html-input-element-handle, value: option<u64>);
/// `valueAsNumber` attribute — getter.
get-value-as-number: func(self: html-input-element-handle) -> f64;
/// `valueAsNumber` attribute — setter.
set-value-as-number: func(self: html-input-element-handle, value: f64);
/// `width` attribute — getter.
get-width: func(self: html-input-element-handle) -> u32;
/// `width` attribute — setter.
set-width: func(self: html-input-element-handle, value: u32);
/// `stepUp()` operation.
step-up: func(self: html-input-element-handle, n: option<s32>);
/// `stepDown()` operation.
step-down: func(self: html-input-element-handle, n: option<s32>);
/// `willValidate` attribute — getter.
get-will-validate: func(self: html-input-element-handle) -> bool;
/// `validity` attribute — getter.
get-validity: func(self: html-input-element-handle) -> u64;
/// `validationMessage` attribute — getter.
get-validation-message: func(self: html-input-element-handle) -> string;
/// `checkValidity()` operation.
check-validity: func(self: html-input-element-handle) -> bool;
/// `reportValidity()` operation.
report-validity: func(self: html-input-element-handle) -> bool;
/// `setCustomValidity()` operation.
set-custom-validity: func(self: html-input-element-handle, error: string);
/// `labels` attribute — getter.
get-labels: func(self: html-input-element-handle) -> option<u64>;
/// `select()` operation.
select: func(self: html-input-element-handle);
/// `selectionStart` attribute — getter.
get-selection-start: func(self: html-input-element-handle) -> option<u32>;
/// `selectionStart` attribute — setter.
set-selection-start: func(self: html-input-element-handle, value: option<u32>);
/// `selectionEnd` attribute — getter.
get-selection-end: func(self: html-input-element-handle) -> option<u32>;
/// `selectionEnd` attribute — setter.
set-selection-end: func(self: html-input-element-handle, value: option<u32>);
/// `selectionDirection` attribute — getter.
get-selection-direction: func(self: html-input-element-handle) -> option<string>;
/// `selectionDirection` attribute — setter.
set-selection-direction: func(self: html-input-element-handle, value: option<string>);
/// `setRangeText()` operation.
set-range-text: func(self: html-input-element-handle, replacement: string);
/// `setSelectionRange()` operation.
set-selection-range: func(self: html-input-element-handle, start: u32, end: u32, direction: option<string>);
/// `showPicker()` operation.
show-picker: func(self: html-input-element-handle);
/// `align` attribute — getter.
get-align: func(self: html-input-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-input-element-handle, value: string);
/// `useMap` attribute — getter.
get-use-map: func(self: html-input-element-handle) -> string;
/// `useMap` attribute — setter.
set-use-map: func(self: html-input-element-handle, value: string);
}
interface html-button-element {
/// Opaque handle to a host-side `HTMLButtonElement` instance.
type html-button-element-handle = u64;
/// `command` attribute — getter.
get-command: func(self: html-button-element-handle) -> string;
/// `command` attribute — setter.
set-command: func(self: html-button-element-handle, value: string);
/// `commandForElement` attribute — getter.
get-command-for-element: func(self: html-button-element-handle) -> option<u64>;
/// `commandForElement` attribute — setter.
set-command-for-element: func(self: html-button-element-handle, value: option<u64>);
/// `disabled` attribute — getter.
get-disabled: func(self: html-button-element-handle) -> bool;
/// `disabled` attribute — setter.
set-disabled: func(self: html-button-element-handle, value: bool);
/// `form` attribute — getter.
get-form: func(self: html-button-element-handle) -> option<u64>;
/// `formAction` attribute — getter.
get-form-action: func(self: html-button-element-handle) -> string;
/// `formAction` attribute — setter.
set-form-action: func(self: html-button-element-handle, value: string);
/// `formEnctype` attribute — getter.
get-form-enctype: func(self: html-button-element-handle) -> string;
/// `formEnctype` attribute — setter.
set-form-enctype: func(self: html-button-element-handle, value: string);
/// `formMethod` attribute — getter.
get-form-method: func(self: html-button-element-handle) -> string;
/// `formMethod` attribute — setter.
set-form-method: func(self: html-button-element-handle, value: string);
/// `formNoValidate` attribute — getter.
get-form-no-validate: func(self: html-button-element-handle) -> bool;
/// `formNoValidate` attribute — setter.
set-form-no-validate: func(self: html-button-element-handle, value: bool);
/// `formTarget` attribute — getter.
get-form-target: func(self: html-button-element-handle) -> string;
/// `formTarget` attribute — setter.
set-form-target: func(self: html-button-element-handle, value: string);
/// `name` attribute — getter.
get-name: func(self: html-button-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-button-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-button-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: html-button-element-handle, value: string);
/// `value` attribute — getter.
get-value: func(self: html-button-element-handle) -> string;
/// `value` attribute — setter.
set-value: func(self: html-button-element-handle, value: string);
/// `willValidate` attribute — getter.
get-will-validate: func(self: html-button-element-handle) -> bool;
/// `validity` attribute — getter.
get-validity: func(self: html-button-element-handle) -> u64;
/// `validationMessage` attribute — getter.
get-validation-message: func(self: html-button-element-handle) -> string;
/// `checkValidity()` operation.
check-validity: func(self: html-button-element-handle) -> bool;
/// `reportValidity()` operation.
report-validity: func(self: html-button-element-handle) -> bool;
/// `setCustomValidity()` operation.
set-custom-validity: func(self: html-button-element-handle, error: string);
/// `labels` attribute — getter.
get-labels: func(self: html-button-element-handle) -> u64;
}
interface html-select-element {
/// Opaque handle to a host-side `HTMLSelectElement` instance.
type html-select-element-handle = u64;
/// `autocomplete` attribute — getter.
get-autocomplete: func(self: html-select-element-handle) -> string;
/// `autocomplete` attribute — setter.
set-autocomplete: func(self: html-select-element-handle, value: string);
/// `disabled` attribute — getter.
get-disabled: func(self: html-select-element-handle) -> bool;
/// `disabled` attribute — setter.
set-disabled: func(self: html-select-element-handle, value: bool);
/// `form` attribute — getter.
get-form: func(self: html-select-element-handle) -> option<u64>;
/// `multiple` attribute — getter.
get-multiple: func(self: html-select-element-handle) -> bool;
/// `multiple` attribute — setter.
set-multiple: func(self: html-select-element-handle, value: bool);
/// `name` attribute — getter.
get-name: func(self: html-select-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-select-element-handle, value: string);
/// `required` attribute — getter.
get-required: func(self: html-select-element-handle) -> bool;
/// `required` attribute — setter.
set-required: func(self: html-select-element-handle, value: bool);
/// `size` attribute — getter.
get-size: func(self: html-select-element-handle) -> u32;
/// `size` attribute — setter.
set-size: func(self: html-select-element-handle, value: u32);
/// `type` attribute — getter.
get-type: func(self: html-select-element-handle) -> string;
/// `options` attribute — getter.
get-options: func(self: html-select-element-handle) -> u64;
/// `length` attribute — getter.
get-length: func(self: html-select-element-handle) -> u32;
/// `length` attribute — setter.
set-length: func(self: html-select-element-handle, value: u32);
/// `item()` operation.
item: func(self: html-select-element-handle, index: u32) -> option<u64>;
/// `namedItem()` operation.
named-item: func(self: html-select-element-handle, name: string) -> option<u64>;
/// `add()` operation.
add: func(self: html-select-element-handle, element: u64, before: option<f64>);
/// `remove()` operation.
remove: func(self: html-select-element-handle);
/// `undefined()` operation.
undefined: func(self: html-select-element-handle, index: u32, %option: option<u64>);
/// `selectedOptions` attribute — getter.
get-selected-options: func(self: html-select-element-handle) -> u64;
/// `selectedIndex` attribute — getter.
get-selected-index: func(self: html-select-element-handle) -> s32;
/// `selectedIndex` attribute — setter.
set-selected-index: func(self: html-select-element-handle, value: s32);
/// `value` attribute — getter.
get-value: func(self: html-select-element-handle) -> string;
/// `value` attribute — setter.
set-value: func(self: html-select-element-handle, value: string);
/// `willValidate` attribute — getter.
get-will-validate: func(self: html-select-element-handle) -> bool;
/// `validity` attribute — getter.
get-validity: func(self: html-select-element-handle) -> u64;
/// `validationMessage` attribute — getter.
get-validation-message: func(self: html-select-element-handle) -> string;
/// `checkValidity()` operation.
check-validity: func(self: html-select-element-handle) -> bool;
/// `reportValidity()` operation.
report-validity: func(self: html-select-element-handle) -> bool;
/// `setCustomValidity()` operation.
set-custom-validity: func(self: html-select-element-handle, error: string);
/// `showPicker()` operation.
show-picker: func(self: html-select-element-handle);
/// `labels` attribute — getter.
get-labels: func(self: html-select-element-handle) -> u64;
}
interface html-data-list-element {
/// Opaque handle to a host-side `HTMLDataListElement` instance.
type html-data-list-element-handle = u64;
/// `options` attribute — getter.
get-options: func(self: html-data-list-element-handle) -> u64;
}
interface html-opt-group-element {
/// Opaque handle to a host-side `HTMLOptGroupElement` instance.
type html-opt-group-element-handle = u64;
/// `disabled` attribute — getter.
get-disabled: func(self: html-opt-group-element-handle) -> bool;
/// `disabled` attribute — setter.
set-disabled: func(self: html-opt-group-element-handle, value: bool);
/// `label` attribute — getter.
get-label: func(self: html-opt-group-element-handle) -> string;
/// `label` attribute — setter.
set-label: func(self: html-opt-group-element-handle, value: string);
}
interface html-option-element {
/// Opaque handle to a host-side `HTMLOptionElement` instance.
type html-option-element-handle = u64;
/// `disabled` attribute — getter.
get-disabled: func(self: html-option-element-handle) -> bool;
/// `disabled` attribute — setter.
set-disabled: func(self: html-option-element-handle, value: bool);
/// `form` attribute — getter.
get-form: func(self: html-option-element-handle) -> option<u64>;
/// `label` attribute — getter.
get-label: func(self: html-option-element-handle) -> string;
/// `label` attribute — setter.
set-label: func(self: html-option-element-handle, value: string);
/// `defaultSelected` attribute — getter.
get-default-selected: func(self: html-option-element-handle) -> bool;
/// `defaultSelected` attribute — setter.
set-default-selected: func(self: html-option-element-handle, value: bool);
/// `selected` attribute — getter.
get-selected: func(self: html-option-element-handle) -> bool;
/// `selected` attribute — setter.
set-selected: func(self: html-option-element-handle, value: bool);
/// `value` attribute — getter.
get-value: func(self: html-option-element-handle) -> string;
/// `value` attribute — setter.
set-value: func(self: html-option-element-handle, value: string);
/// `text` attribute — getter.
get-text: func(self: html-option-element-handle) -> string;
/// `text` attribute — setter.
set-text: func(self: html-option-element-handle, value: string);
/// `index` attribute — getter.
get-index: func(self: html-option-element-handle) -> s32;
}
interface html-text-area-element {
/// Opaque handle to a host-side `HTMLTextAreaElement` instance.
type html-text-area-element-handle = u64;
/// `autocomplete` attribute — getter.
get-autocomplete: func(self: html-text-area-element-handle) -> string;
/// `autocomplete` attribute — setter.
set-autocomplete: func(self: html-text-area-element-handle, value: string);
/// `cols` attribute — getter.
get-cols: func(self: html-text-area-element-handle) -> u32;
/// `cols` attribute — setter.
set-cols: func(self: html-text-area-element-handle, value: u32);
/// `dirName` attribute — getter.
get-dir-name: func(self: html-text-area-element-handle) -> string;
/// `dirName` attribute — setter.
set-dir-name: func(self: html-text-area-element-handle, value: string);
/// `disabled` attribute — getter.
get-disabled: func(self: html-text-area-element-handle) -> bool;
/// `disabled` attribute — setter.
set-disabled: func(self: html-text-area-element-handle, value: bool);
/// `form` attribute — getter.
get-form: func(self: html-text-area-element-handle) -> option<u64>;
/// `maxLength` attribute — getter.
get-max-length: func(self: html-text-area-element-handle) -> s32;
/// `maxLength` attribute — setter.
set-max-length: func(self: html-text-area-element-handle, value: s32);
/// `minLength` attribute — getter.
get-min-length: func(self: html-text-area-element-handle) -> s32;
/// `minLength` attribute — setter.
set-min-length: func(self: html-text-area-element-handle, value: s32);
/// `name` attribute — getter.
get-name: func(self: html-text-area-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-text-area-element-handle, value: string);
/// `placeholder` attribute — getter.
get-placeholder: func(self: html-text-area-element-handle) -> string;
/// `placeholder` attribute — setter.
set-placeholder: func(self: html-text-area-element-handle, value: string);
/// `readOnly` attribute — getter.
get-read-only: func(self: html-text-area-element-handle) -> bool;
/// `readOnly` attribute — setter.
set-read-only: func(self: html-text-area-element-handle, value: bool);
/// `required` attribute — getter.
get-required: func(self: html-text-area-element-handle) -> bool;
/// `required` attribute — setter.
set-required: func(self: html-text-area-element-handle, value: bool);
/// `rows` attribute — getter.
get-rows: func(self: html-text-area-element-handle) -> u32;
/// `rows` attribute — setter.
set-rows: func(self: html-text-area-element-handle, value: u32);
/// `wrap` attribute — getter.
get-wrap: func(self: html-text-area-element-handle) -> string;
/// `wrap` attribute — setter.
set-wrap: func(self: html-text-area-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-text-area-element-handle) -> string;
/// `defaultValue` attribute — getter.
get-default-value: func(self: html-text-area-element-handle) -> string;
/// `defaultValue` attribute — setter.
set-default-value: func(self: html-text-area-element-handle, value: string);
/// `value` attribute — getter.
get-value: func(self: html-text-area-element-handle) -> string;
/// `value` attribute — setter.
set-value: func(self: html-text-area-element-handle, value: string);
/// `textLength` attribute — getter.
get-text-length: func(self: html-text-area-element-handle) -> u32;
/// `willValidate` attribute — getter.
get-will-validate: func(self: html-text-area-element-handle) -> bool;
/// `validity` attribute — getter.
get-validity: func(self: html-text-area-element-handle) -> u64;
/// `validationMessage` attribute — getter.
get-validation-message: func(self: html-text-area-element-handle) -> string;
/// `checkValidity()` operation.
check-validity: func(self: html-text-area-element-handle) -> bool;
/// `reportValidity()` operation.
report-validity: func(self: html-text-area-element-handle) -> bool;
/// `setCustomValidity()` operation.
set-custom-validity: func(self: html-text-area-element-handle, error: string);
/// `labels` attribute — getter.
get-labels: func(self: html-text-area-element-handle) -> u64;
/// `select()` operation.
select: func(self: html-text-area-element-handle);
/// `selectionStart` attribute — getter.
get-selection-start: func(self: html-text-area-element-handle) -> u32;
/// `selectionStart` attribute — setter.
set-selection-start: func(self: html-text-area-element-handle, value: u32);
/// `selectionEnd` attribute — getter.
get-selection-end: func(self: html-text-area-element-handle) -> u32;
/// `selectionEnd` attribute — setter.
set-selection-end: func(self: html-text-area-element-handle, value: u32);
/// `selectionDirection` attribute — getter.
get-selection-direction: func(self: html-text-area-element-handle) -> string;
/// `selectionDirection` attribute — setter.
set-selection-direction: func(self: html-text-area-element-handle, value: string);
/// `setRangeText()` operation.
set-range-text: func(self: html-text-area-element-handle, replacement: string);
/// `setSelectionRange()` operation.
set-selection-range: func(self: html-text-area-element-handle, start: u32, end: u32, direction: option<string>);
}
interface html-output-element {
/// Opaque handle to a host-side `HTMLOutputElement` instance.
type html-output-element-handle = u64;
/// `htmlFor` attribute — getter.
get-html-for: func(self: html-output-element-handle) -> u64;
/// `form` attribute — getter.
get-form: func(self: html-output-element-handle) -> option<u64>;
/// `name` attribute — getter.
get-name: func(self: html-output-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-output-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-output-element-handle) -> string;
/// `defaultValue` attribute — getter.
get-default-value: func(self: html-output-element-handle) -> string;
/// `defaultValue` attribute — setter.
set-default-value: func(self: html-output-element-handle, value: string);
/// `value` attribute — getter.
get-value: func(self: html-output-element-handle) -> string;
/// `value` attribute — setter.
set-value: func(self: html-output-element-handle, value: string);
/// `willValidate` attribute — getter.
get-will-validate: func(self: html-output-element-handle) -> bool;
/// `validity` attribute — getter.
get-validity: func(self: html-output-element-handle) -> u64;
/// `validationMessage` attribute — getter.
get-validation-message: func(self: html-output-element-handle) -> string;
/// `checkValidity()` operation.
check-validity: func(self: html-output-element-handle) -> bool;
/// `reportValidity()` operation.
report-validity: func(self: html-output-element-handle) -> bool;
/// `setCustomValidity()` operation.
set-custom-validity: func(self: html-output-element-handle, error: string);
/// `labels` attribute — getter.
get-labels: func(self: html-output-element-handle) -> u64;
}
interface html-progress-element {
/// Opaque handle to a host-side `HTMLProgressElement` instance.
type html-progress-element-handle = u64;
/// `value` attribute — getter.
get-value: func(self: html-progress-element-handle) -> f64;
/// `value` attribute — setter.
set-value: func(self: html-progress-element-handle, value: f64);
/// `max` attribute — getter.
get-max: func(self: html-progress-element-handle) -> f64;
/// `max` attribute — setter.
set-max: func(self: html-progress-element-handle, value: f64);
/// `position` attribute — getter.
get-position: func(self: html-progress-element-handle) -> f64;
/// `labels` attribute — getter.
get-labels: func(self: html-progress-element-handle) -> u64;
}
interface html-meter-element {
/// Opaque handle to a host-side `HTMLMeterElement` instance.
type html-meter-element-handle = u64;
/// `value` attribute — getter.
get-value: func(self: html-meter-element-handle) -> f64;
/// `value` attribute — setter.
set-value: func(self: html-meter-element-handle, value: f64);
/// `min` attribute — getter.
get-min: func(self: html-meter-element-handle) -> f64;
/// `min` attribute — setter.
set-min: func(self: html-meter-element-handle, value: f64);
/// `max` attribute — getter.
get-max: func(self: html-meter-element-handle) -> f64;
/// `max` attribute — setter.
set-max: func(self: html-meter-element-handle, value: f64);
/// `low` attribute — getter.
get-low: func(self: html-meter-element-handle) -> f64;
/// `low` attribute — setter.
set-low: func(self: html-meter-element-handle, value: f64);
/// `high` attribute — getter.
get-high: func(self: html-meter-element-handle) -> f64;
/// `high` attribute — setter.
set-high: func(self: html-meter-element-handle, value: f64);
/// `optimum` attribute — getter.
get-optimum: func(self: html-meter-element-handle) -> f64;
/// `optimum` attribute — setter.
set-optimum: func(self: html-meter-element-handle, value: f64);
/// `labels` attribute — getter.
get-labels: func(self: html-meter-element-handle) -> u64;
}
interface html-field-set-element {
/// Opaque handle to a host-side `HTMLFieldSetElement` instance.
type html-field-set-element-handle = u64;
/// `disabled` attribute — getter.
get-disabled: func(self: html-field-set-element-handle) -> bool;
/// `disabled` attribute — setter.
set-disabled: func(self: html-field-set-element-handle, value: bool);
/// `form` attribute — getter.
get-form: func(self: html-field-set-element-handle) -> option<u64>;
/// `name` attribute — getter.
get-name: func(self: html-field-set-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-field-set-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-field-set-element-handle) -> string;
/// `elements` attribute — getter.
get-elements: func(self: html-field-set-element-handle) -> u64;
/// `willValidate` attribute — getter.
get-will-validate: func(self: html-field-set-element-handle) -> bool;
/// `validity` attribute — getter.
get-validity: func(self: html-field-set-element-handle) -> u64;
/// `validationMessage` attribute — getter.
get-validation-message: func(self: html-field-set-element-handle) -> string;
/// `checkValidity()` operation.
check-validity: func(self: html-field-set-element-handle) -> bool;
/// `reportValidity()` operation.
report-validity: func(self: html-field-set-element-handle) -> bool;
/// `setCustomValidity()` operation.
set-custom-validity: func(self: html-field-set-element-handle, error: string);
}
interface html-legend-element {
/// Opaque handle to a host-side `HTMLLegendElement` instance.
type html-legend-element-handle = u64;
/// `form` attribute — getter.
get-form: func(self: html-legend-element-handle) -> option<u64>;
/// `align` attribute — getter.
get-align: func(self: html-legend-element-handle) -> string;
/// `align` attribute — setter.
set-align: func(self: html-legend-element-handle, value: string);
}
interface validity-state {
/// Opaque handle to a host-side `ValidityState` instance.
type validity-state-handle = u64;
/// `valueMissing` attribute — getter.
get-value-missing: func(self: validity-state-handle) -> bool;
/// `typeMismatch` attribute — getter.
get-type-mismatch: func(self: validity-state-handle) -> bool;
/// `patternMismatch` attribute — getter.
get-pattern-mismatch: func(self: validity-state-handle) -> bool;
/// `tooLong` attribute — getter.
get-too-long: func(self: validity-state-handle) -> bool;
/// `tooShort` attribute — getter.
get-too-short: func(self: validity-state-handle) -> bool;
/// `rangeUnderflow` attribute — getter.
get-range-underflow: func(self: validity-state-handle) -> bool;
/// `rangeOverflow` attribute — getter.
get-range-overflow: func(self: validity-state-handle) -> bool;
/// `stepMismatch` attribute — getter.
get-step-mismatch: func(self: validity-state-handle) -> bool;
/// `badInput` attribute — getter.
get-bad-input: func(self: validity-state-handle) -> bool;
/// `customError` attribute — getter.
get-custom-error: func(self: validity-state-handle) -> bool;
/// `valid` attribute — getter.
get-valid: func(self: validity-state-handle) -> bool;
}
interface submit-event {
/// Opaque handle to a host-side `SubmitEvent` instance.
type submit-event-handle = u64;
/// `submitter` attribute — getter.
get-submitter: func(self: submit-event-handle) -> option<u64>;
}
interface form-data-event {
/// Opaque handle to a host-side `FormDataEvent` instance.
type form-data-event-handle = u64;
/// `formData` attribute — getter.
get-form-data: func(self: form-data-event-handle) -> u64;
}
interface html-details-element {
/// Opaque handle to a host-side `HTMLDetailsElement` instance.
type html-details-element-handle = u64;
/// `name` attribute — getter.
get-name: func(self: html-details-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-details-element-handle, value: string);
/// `open` attribute — getter.
get-open: func(self: html-details-element-handle) -> bool;
/// `open` attribute — setter.
set-open: func(self: html-details-element-handle, value: bool);
}
interface html-dialog-element {
/// Opaque handle to a host-side `HTMLDialogElement` instance.
type html-dialog-element-handle = u64;
/// `open` attribute — getter.
get-open: func(self: html-dialog-element-handle) -> bool;
/// `open` attribute — setter.
set-open: func(self: html-dialog-element-handle, value: bool);
/// `returnValue` attribute — getter.
get-return-value: func(self: html-dialog-element-handle) -> string;
/// `returnValue` attribute — setter.
set-return-value: func(self: html-dialog-element-handle, value: string);
/// `closedBy` attribute — getter.
get-closed-by: func(self: html-dialog-element-handle) -> string;
/// `closedBy` attribute — setter.
set-closed-by: func(self: html-dialog-element-handle, value: string);
/// `show()` operation.
show: func(self: html-dialog-element-handle);
/// `showModal()` operation.
show-modal: func(self: html-dialog-element-handle);
/// `close()` operation.
close: func(self: html-dialog-element-handle, return-value: option<string>);
/// `requestClose()` operation.
request-close: func(self: html-dialog-element-handle, return-value: option<string>);
}
interface html-script-element {
/// Opaque handle to a host-side `HTMLScriptElement` instance.
type html-script-element-handle = u64;
/// `type` attribute — getter.
get-type: func(self: html-script-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: html-script-element-handle, value: string);
/// `src` attribute — getter.
get-src: func(self: html-script-element-handle) -> string;
/// `src` attribute — setter.
set-src: func(self: html-script-element-handle, value: string);
/// `noModule` attribute — getter.
get-no-module: func(self: html-script-element-handle) -> bool;
/// `noModule` attribute — setter.
set-no-module: func(self: html-script-element-handle, value: bool);
/// `async` attribute — getter.
get-async: func(self: html-script-element-handle) -> bool;
/// `async` attribute — setter.
set-async: func(self: html-script-element-handle, value: bool);
/// `defer` attribute — getter.
get-defer: func(self: html-script-element-handle) -> bool;
/// `defer` attribute — setter.
set-defer: func(self: html-script-element-handle, value: bool);
/// `blocking` attribute — getter.
get-blocking: func(self: html-script-element-handle) -> u64;
/// `crossOrigin` attribute — getter.
get-cross-origin: func(self: html-script-element-handle) -> option<string>;
/// `crossOrigin` attribute — setter.
set-cross-origin: func(self: html-script-element-handle, value: option<string>);
/// `referrerPolicy` attribute — getter.
get-referrer-policy: func(self: html-script-element-handle) -> string;
/// `referrerPolicy` attribute — setter.
set-referrer-policy: func(self: html-script-element-handle, value: string);
/// `integrity` attribute — getter.
get-integrity: func(self: html-script-element-handle) -> string;
/// `integrity` attribute — setter.
set-integrity: func(self: html-script-element-handle, value: string);
/// `fetchPriority` attribute — getter.
get-fetch-priority: func(self: html-script-element-handle) -> string;
/// `fetchPriority` attribute — setter.
set-fetch-priority: func(self: html-script-element-handle, value: string);
/// `text` attribute — getter.
get-text: func(self: html-script-element-handle) -> string;
/// `text` attribute — setter.
set-text: func(self: html-script-element-handle, value: string);
/// `supports()` operation.
supports: func(%type: string) -> bool;
/// `charset` attribute — getter.
get-charset: func(self: html-script-element-handle) -> string;
/// `charset` attribute — setter.
set-charset: func(self: html-script-element-handle, value: string);
/// `event` attribute — getter.
get-event: func(self: html-script-element-handle) -> string;
/// `event` attribute — setter.
set-event: func(self: html-script-element-handle, value: string);
/// `htmlFor` attribute — getter.
get-html-for: func(self: html-script-element-handle) -> string;
/// `htmlFor` attribute — setter.
set-html-for: func(self: html-script-element-handle, value: string);
}
interface html-template-element {
/// Opaque handle to a host-side `HTMLTemplateElement` instance.
type html-template-element-handle = u64;
/// `content` attribute — getter.
get-content: func(self: html-template-element-handle) -> u64;
/// `shadowRootMode` attribute — getter.
get-shadow-root-mode: func(self: html-template-element-handle) -> string;
/// `shadowRootMode` attribute — setter.
set-shadow-root-mode: func(self: html-template-element-handle, value: string);
/// `shadowRootDelegatesFocus` attribute — getter.
get-shadow-root-delegates-focus: func(self: html-template-element-handle) -> bool;
/// `shadowRootDelegatesFocus` attribute — setter.
set-shadow-root-delegates-focus: func(self: html-template-element-handle, value: bool);
/// `shadowRootClonable` attribute — getter.
get-shadow-root-clonable: func(self: html-template-element-handle) -> bool;
/// `shadowRootClonable` attribute — setter.
set-shadow-root-clonable: func(self: html-template-element-handle, value: bool);
/// `shadowRootSerializable` attribute — getter.
get-shadow-root-serializable: func(self: html-template-element-handle) -> bool;
/// `shadowRootSerializable` attribute — setter.
set-shadow-root-serializable: func(self: html-template-element-handle, value: bool);
/// `shadowRootCustomElementRegistry` attribute — getter.
get-shadow-root-custom-element-registry: func(self: html-template-element-handle) -> string;
/// `shadowRootCustomElementRegistry` attribute — setter.
set-shadow-root-custom-element-registry: func(self: html-template-element-handle, value: string);
}
interface html-slot-element {
/// Opaque handle to a host-side `HTMLSlotElement` instance.
type html-slot-element-handle = u64;
/// `name` attribute — getter.
get-name: func(self: html-slot-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-slot-element-handle, value: string);
/// `assignedNodes()` operation.
assigned-nodes: func(self: html-slot-element-handle, options: option<u64>) -> list<u64>;
/// `assignedElements()` operation.
assigned-elements: func(self: html-slot-element-handle, options: option<u64>) -> list<u64>;
/// `assign()` operation.
assign: func(self: html-slot-element-handle, nodes: list<u64>);
}
interface html-canvas-element {
/// Opaque handle to a host-side `HTMLCanvasElement` instance.
type html-canvas-element-handle = u64;
/// `width` attribute — getter.
get-width: func(self: html-canvas-element-handle) -> u32;
/// `width` attribute — setter.
set-width: func(self: html-canvas-element-handle, value: u32);
/// `height` attribute — getter.
get-height: func(self: html-canvas-element-handle) -> u32;
/// `height` attribute — setter.
set-height: func(self: html-canvas-element-handle, value: u32);
/// `getContext()` operation.
get-context: func(self: html-canvas-element-handle, context-id: string, options: option<string>) -> option<u64>;
/// `toDataURL()` operation.
to-data-url: func(self: html-canvas-element-handle, %type: option<string>, quality: option<string>) -> string;
/// `toBlob()` operation.
to-blob: func(self: html-canvas-element-handle, callback: u64, %type: option<string>, quality: option<string>);
/// `transferControlToOffscreen()` operation.
transfer-control-to-offscreen: func(self: html-canvas-element-handle) -> u64;
}
interface canvas-rendering-context2-d {
/// Opaque handle to a host-side `CanvasRenderingContext2D` instance.
type canvas-rendering-context2-d-handle = u64;
/// `canvas` attribute — getter.
get-canvas: func(self: canvas-rendering-context2-d-handle) -> u64;
}
interface canvas-settings {
/// Opaque handle to a host-side `CanvasSettings` instance.
type canvas-settings-handle = u64;
/// `getContextAttributes()` operation.
get-context-attributes: func(self: canvas-settings-handle) -> u64;
}
interface canvas-state {
/// Opaque handle to a host-side `CanvasState` instance.
type canvas-state-handle = u64;
/// `save()` operation.
save: func(self: canvas-state-handle);
/// `restore()` operation.
restore: func(self: canvas-state-handle);
/// `reset()` operation.
reset: func(self: canvas-state-handle);
/// `isContextLost()` operation.
is-context-lost: func(self: canvas-state-handle) -> bool;
}
interface canvas-transform {
/// Opaque handle to a host-side `CanvasTransform` instance.
type canvas-transform-handle = u64;
/// `scale()` operation.
scale: func(self: canvas-transform-handle, x: f64, y: f64);
/// `rotate()` operation.
rotate: func(self: canvas-transform-handle, angle: f64);
/// `translate()` operation.
translate: func(self: canvas-transform-handle, x: f64, y: f64);
/// `transform()` operation.
transform: func(self: canvas-transform-handle, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64);
/// `getTransform()` operation.
get-transform: func(self: canvas-transform-handle) -> u64;
/// `setTransform()` operation.
set-transform: func(self: canvas-transform-handle, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64);
/// `resetTransform()` operation.
reset-transform: func(self: canvas-transform-handle);
}
interface canvas-compositing {
/// Opaque handle to a host-side `CanvasCompositing` instance.
type canvas-compositing-handle = u64;
/// `globalAlpha` attribute — getter.
get-global-alpha: func(self: canvas-compositing-handle) -> f64;
/// `globalAlpha` attribute — setter.
set-global-alpha: func(self: canvas-compositing-handle, value: f64);
/// `globalCompositeOperation` attribute — getter.
get-global-composite-operation: func(self: canvas-compositing-handle) -> string;
/// `globalCompositeOperation` attribute — setter.
set-global-composite-operation: func(self: canvas-compositing-handle, value: string);
}
interface canvas-image-smoothing {
/// Opaque handle to a host-side `CanvasImageSmoothing` instance.
type canvas-image-smoothing-handle = u64;
/// `imageSmoothingEnabled` attribute — getter.
get-image-smoothing-enabled: func(self: canvas-image-smoothing-handle) -> bool;
/// `imageSmoothingEnabled` attribute — setter.
set-image-smoothing-enabled: func(self: canvas-image-smoothing-handle, value: bool);
/// `imageSmoothingQuality` attribute — getter.
get-image-smoothing-quality: func(self: canvas-image-smoothing-handle) -> u64;
/// `imageSmoothingQuality` attribute — setter.
set-image-smoothing-quality: func(self: canvas-image-smoothing-handle, value: u64);
}
interface canvas-fill-stroke-styles {
/// Opaque handle to a host-side `CanvasFillStrokeStyles` instance.
type canvas-fill-stroke-styles-handle = u64;
/// `strokeStyle` attribute — getter.
get-stroke-style: func(self: canvas-fill-stroke-styles-handle) -> string;
/// `strokeStyle` attribute — setter.
set-stroke-style: func(self: canvas-fill-stroke-styles-handle, value: string);
/// `fillStyle` attribute — getter.
get-fill-style: func(self: canvas-fill-stroke-styles-handle) -> string;
/// `fillStyle` attribute — setter.
set-fill-style: func(self: canvas-fill-stroke-styles-handle, value: string);
/// `createLinearGradient()` operation.
create-linear-gradient: func(self: canvas-fill-stroke-styles-handle, x0: f64, y0: f64, x1: f64, y1: f64) -> u64;
/// `createRadialGradient()` operation.
create-radial-gradient: func(self: canvas-fill-stroke-styles-handle, x0: f64, y0: f64, r0: f64, x1: f64, y1: f64, r1: f64) -> u64;
/// `createConicGradient()` operation.
create-conic-gradient: func(self: canvas-fill-stroke-styles-handle, start-angle: f64, x: f64, y: f64) -> u64;
/// `createPattern()` operation.
create-pattern: func(self: canvas-fill-stroke-styles-handle, image: u64, repetition: string) -> option<u64>;
}
interface canvas-shadow-styles {
/// Opaque handle to a host-side `CanvasShadowStyles` instance.
type canvas-shadow-styles-handle = u64;
/// `shadowOffsetX` attribute — getter.
get-shadow-offset-x: func(self: canvas-shadow-styles-handle) -> f64;
/// `shadowOffsetX` attribute — setter.
set-shadow-offset-x: func(self: canvas-shadow-styles-handle, value: f64);
/// `shadowOffsetY` attribute — getter.
get-shadow-offset-y: func(self: canvas-shadow-styles-handle) -> f64;
/// `shadowOffsetY` attribute — setter.
set-shadow-offset-y: func(self: canvas-shadow-styles-handle, value: f64);
/// `shadowBlur` attribute — getter.
get-shadow-blur: func(self: canvas-shadow-styles-handle) -> f64;
/// `shadowBlur` attribute — setter.
set-shadow-blur: func(self: canvas-shadow-styles-handle, value: f64);
/// `shadowColor` attribute — getter.
get-shadow-color: func(self: canvas-shadow-styles-handle) -> string;
/// `shadowColor` attribute — setter.
set-shadow-color: func(self: canvas-shadow-styles-handle, value: string);
}
interface canvas-filters {
/// Opaque handle to a host-side `CanvasFilters` instance.
type canvas-filters-handle = u64;
/// `filter` attribute — getter.
get-filter: func(self: canvas-filters-handle) -> string;
/// `filter` attribute — setter.
set-filter: func(self: canvas-filters-handle, value: string);
}
interface canvas-rect {
/// Opaque handle to a host-side `CanvasRect` instance.
type canvas-rect-handle = u64;
/// `clearRect()` operation.
clear-rect: func(self: canvas-rect-handle, x: f64, y: f64, w: f64, h: f64);
/// `fillRect()` operation.
fill-rect: func(self: canvas-rect-handle, x: f64, y: f64, w: f64, h: f64);
/// `strokeRect()` operation.
stroke-rect: func(self: canvas-rect-handle, x: f64, y: f64, w: f64, h: f64);
}
interface canvas-draw-path {
/// Opaque handle to a host-side `CanvasDrawPath` instance.
type canvas-draw-path-handle = u64;
/// `beginPath()` operation.
begin-path: func(self: canvas-draw-path-handle);
/// `fill()` operation.
fill: func(self: canvas-draw-path-handle, fill-rule: option<u64>);
/// `stroke()` operation.
stroke: func(self: canvas-draw-path-handle);
/// `clip()` operation.
clip: func(self: canvas-draw-path-handle, fill-rule: option<u64>);
/// `isPointInPath()` operation.
is-point-in-path: func(self: canvas-draw-path-handle, x: f64, y: f64, fill-rule: option<u64>) -> bool;
/// `isPointInStroke()` operation.
is-point-in-stroke: func(self: canvas-draw-path-handle, x: f64, y: f64) -> bool;
}
interface canvas-user-interface {
/// Opaque handle to a host-side `CanvasUserInterface` instance.
type canvas-user-interface-handle = u64;
/// `drawFocusIfNeeded()` operation.
draw-focus-if-needed: func(self: canvas-user-interface-handle, element: u64);
}
interface canvas-text {
/// Opaque handle to a host-side `CanvasText` instance.
type canvas-text-handle = u64;
/// `fillText()` operation.
fill-text: func(self: canvas-text-handle, text: string, x: f64, y: f64, max-width: option<f64>);
/// `strokeText()` operation.
stroke-text: func(self: canvas-text-handle, text: string, x: f64, y: f64, max-width: option<f64>);
/// `measureText()` operation.
measure-text: func(self: canvas-text-handle, text: string) -> u64;
}
interface canvas-draw-image {
/// Opaque handle to a host-side `CanvasDrawImage` instance.
type canvas-draw-image-handle = u64;
/// `drawImage()` operation.
draw-image: func(self: canvas-draw-image-handle, image: u64, dx: f64, dy: f64);
}
interface canvas-image-data {
/// Opaque handle to a host-side `CanvasImageData` instance.
type canvas-image-data-handle = u64;
/// `createImageData()` operation.
create-image-data: func(self: canvas-image-data-handle, sw: s32, sh: s32, settings: option<u64>) -> u64;
/// `getImageData()` operation.
get-image-data: func(self: canvas-image-data-handle, sx: s32, sy: s32, sw: s32, sh: s32, settings: option<u64>) -> u64;
/// `putImageData()` operation.
put-image-data: func(self: canvas-image-data-handle, image-data: u64, dx: s32, dy: s32);
}
interface canvas-path-drawing-styles {
/// Opaque handle to a host-side `CanvasPathDrawingStyles` instance.
type canvas-path-drawing-styles-handle = u64;
/// `lineWidth` attribute — getter.
get-line-width: func(self: canvas-path-drawing-styles-handle) -> f64;
/// `lineWidth` attribute — setter.
set-line-width: func(self: canvas-path-drawing-styles-handle, value: f64);
/// `lineCap` attribute — getter.
get-line-cap: func(self: canvas-path-drawing-styles-handle) -> u64;
/// `lineCap` attribute — setter.
set-line-cap: func(self: canvas-path-drawing-styles-handle, value: u64);
/// `lineJoin` attribute — getter.
get-line-join: func(self: canvas-path-drawing-styles-handle) -> u64;
/// `lineJoin` attribute — setter.
set-line-join: func(self: canvas-path-drawing-styles-handle, value: u64);
/// `miterLimit` attribute — getter.
get-miter-limit: func(self: canvas-path-drawing-styles-handle) -> f64;
/// `miterLimit` attribute — setter.
set-miter-limit: func(self: canvas-path-drawing-styles-handle, value: f64);
/// `setLineDash()` operation.
set-line-dash: func(self: canvas-path-drawing-styles-handle, segments: list<f64>);
/// `getLineDash()` operation.
get-line-dash: func(self: canvas-path-drawing-styles-handle) -> list<f64>;
/// `lineDashOffset` attribute — getter.
get-line-dash-offset: func(self: canvas-path-drawing-styles-handle) -> f64;
/// `lineDashOffset` attribute — setter.
set-line-dash-offset: func(self: canvas-path-drawing-styles-handle, value: f64);
}
interface canvas-text-drawing-styles {
/// Opaque handle to a host-side `CanvasTextDrawingStyles` instance.
type canvas-text-drawing-styles-handle = u64;
/// `lang` attribute — getter.
get-lang: func(self: canvas-text-drawing-styles-handle) -> string;
/// `lang` attribute — setter.
set-lang: func(self: canvas-text-drawing-styles-handle, value: string);
/// `font` attribute — getter.
get-font: func(self: canvas-text-drawing-styles-handle) -> string;
/// `font` attribute — setter.
set-font: func(self: canvas-text-drawing-styles-handle, value: string);
/// `textAlign` attribute — getter.
get-text-align: func(self: canvas-text-drawing-styles-handle) -> u64;
/// `textAlign` attribute — setter.
set-text-align: func(self: canvas-text-drawing-styles-handle, value: u64);
/// `textBaseline` attribute — getter.
get-text-baseline: func(self: canvas-text-drawing-styles-handle) -> u64;
/// `textBaseline` attribute — setter.
set-text-baseline: func(self: canvas-text-drawing-styles-handle, value: u64);
/// `direction` attribute — getter.
get-direction: func(self: canvas-text-drawing-styles-handle) -> u64;
/// `direction` attribute — setter.
set-direction: func(self: canvas-text-drawing-styles-handle, value: u64);
/// `letterSpacing` attribute — getter.
get-letter-spacing: func(self: canvas-text-drawing-styles-handle) -> string;
/// `letterSpacing` attribute — setter.
set-letter-spacing: func(self: canvas-text-drawing-styles-handle, value: string);
/// `fontKerning` attribute — getter.
get-font-kerning: func(self: canvas-text-drawing-styles-handle) -> u64;
/// `fontKerning` attribute — setter.
set-font-kerning: func(self: canvas-text-drawing-styles-handle, value: u64);
/// `fontStretch` attribute — getter.
get-font-stretch: func(self: canvas-text-drawing-styles-handle) -> u64;
/// `fontStretch` attribute — setter.
set-font-stretch: func(self: canvas-text-drawing-styles-handle, value: u64);
/// `fontVariantCaps` attribute — getter.
get-font-variant-caps: func(self: canvas-text-drawing-styles-handle) -> u64;
/// `fontVariantCaps` attribute — setter.
set-font-variant-caps: func(self: canvas-text-drawing-styles-handle, value: u64);
/// `textRendering` attribute — getter.
get-text-rendering: func(self: canvas-text-drawing-styles-handle) -> u64;
/// `textRendering` attribute — setter.
set-text-rendering: func(self: canvas-text-drawing-styles-handle, value: u64);
/// `wordSpacing` attribute — getter.
get-word-spacing: func(self: canvas-text-drawing-styles-handle) -> string;
/// `wordSpacing` attribute — setter.
set-word-spacing: func(self: canvas-text-drawing-styles-handle, value: string);
}
interface canvas-path {
/// Opaque handle to a host-side `CanvasPath` instance.
type canvas-path-handle = u64;
/// `closePath()` operation.
close-path: func(self: canvas-path-handle);
/// `moveTo()` operation.
move-to: func(self: canvas-path-handle, x: f64, y: f64);
/// `lineTo()` operation.
line-to: func(self: canvas-path-handle, x: f64, y: f64);
/// `quadraticCurveTo()` operation.
quadratic-curve-to: func(self: canvas-path-handle, cpx: f64, cpy: f64, x: f64, y: f64);
/// `bezierCurveTo()` operation.
bezier-curve-to: func(self: canvas-path-handle, cp1x: f64, cp1y: f64, cp2x: f64, cp2y: f64, x: f64, y: f64);
/// `arcTo()` operation.
arc-to: func(self: canvas-path-handle, x1: f64, y1: f64, x2: f64, y2: f64, radius: f64);
/// `rect()` operation.
rect: func(self: canvas-path-handle, x: f64, y: f64, w: f64, h: f64);
/// `roundRect()` operation.
round-rect: func(self: canvas-path-handle, x: f64, y: f64, w: f64, h: f64, radii: option<f64>);
/// `arc()` operation.
arc: func(self: canvas-path-handle, x: f64, y: f64, radius: f64, start-angle: f64, end-angle: f64, counterclockwise: option<bool>);
/// `ellipse()` operation.
ellipse: func(self: canvas-path-handle, x: f64, y: f64, radius-x: f64, radius-y: f64, rotation: f64, start-angle: f64, end-angle: f64, counterclockwise: option<bool>);
}
interface canvas-gradient {
/// Opaque handle to a host-side `CanvasGradient` instance.
type canvas-gradient-handle = u64;
/// `addColorStop()` operation.
add-color-stop: func(self: canvas-gradient-handle, offset: f64, color: string);
}
interface canvas-pattern {
/// Opaque handle to a host-side `CanvasPattern` instance.
type canvas-pattern-handle = u64;
/// `setTransform()` operation.
set-transform: func(self: canvas-pattern-handle, transform: option<u64>);
}
interface text-metrics {
/// Opaque handle to a host-side `TextMetrics` instance.
type text-metrics-handle = u64;
/// `width` attribute — getter.
get-width: func(self: text-metrics-handle) -> f64;
/// `actualBoundingBoxLeft` attribute — getter.
get-actual-bounding-box-left: func(self: text-metrics-handle) -> f64;
/// `actualBoundingBoxRight` attribute — getter.
get-actual-bounding-box-right: func(self: text-metrics-handle) -> f64;
/// `fontBoundingBoxAscent` attribute — getter.
get-font-bounding-box-ascent: func(self: text-metrics-handle) -> f64;
/// `fontBoundingBoxDescent` attribute — getter.
get-font-bounding-box-descent: func(self: text-metrics-handle) -> f64;
/// `actualBoundingBoxAscent` attribute — getter.
get-actual-bounding-box-ascent: func(self: text-metrics-handle) -> f64;
/// `actualBoundingBoxDescent` attribute — getter.
get-actual-bounding-box-descent: func(self: text-metrics-handle) -> f64;
/// `emHeightAscent` attribute — getter.
get-em-height-ascent: func(self: text-metrics-handle) -> f64;
/// `emHeightDescent` attribute — getter.
get-em-height-descent: func(self: text-metrics-handle) -> f64;
/// `hangingBaseline` attribute — getter.
get-hanging-baseline: func(self: text-metrics-handle) -> f64;
/// `alphabeticBaseline` attribute — getter.
get-alphabetic-baseline: func(self: text-metrics-handle) -> f64;
/// `ideographicBaseline` attribute — getter.
get-ideographic-baseline: func(self: text-metrics-handle) -> f64;
}
interface path2-d {
/// Opaque handle to a host-side `Path2D` instance.
type path2-d-handle = u64;
/// `addPath()` operation.
add-path: func(self: path2-d-handle, path: u64, transform: option<u64>);
}
interface image-bitmap-rendering-context {
/// Opaque handle to a host-side `ImageBitmapRenderingContext` instance.
type image-bitmap-rendering-context-handle = u64;
/// `canvas` attribute — getter.
get-canvas: func(self: image-bitmap-rendering-context-handle) -> u64;
/// `transferFromImageBitmap()` operation.
transfer-from-image-bitmap: func(self: image-bitmap-rendering-context-handle, bitmap: option<u64>);
}
interface offscreen-canvas {
/// Opaque handle to a host-side `OffscreenCanvas` instance.
type offscreen-canvas-handle = u64;
/// `width` attribute — getter.
get-width: func(self: offscreen-canvas-handle) -> u64;
/// `width` attribute — setter.
set-width: func(self: offscreen-canvas-handle, value: u64);
/// `height` attribute — getter.
get-height: func(self: offscreen-canvas-handle) -> u64;
/// `height` attribute — setter.
set-height: func(self: offscreen-canvas-handle, value: u64);
/// `getContext()` operation.
get-context: func(self: offscreen-canvas-handle, context-id: u64, options: option<string>) -> option<u64>;
/// `transferToImageBitmap()` operation.
transfer-to-image-bitmap: func(self: offscreen-canvas-handle) -> u64;
/// `convertToBlob()` operation.
convert-to-blob: func(self: offscreen-canvas-handle, options: option<u64>) -> u64;
/// `oncontextlost` attribute — getter.
get-oncontextlost: func(self: offscreen-canvas-handle) -> u64;
/// `oncontextlost` attribute — setter.
set-oncontextlost: func(self: offscreen-canvas-handle, value: u64);
/// `oncontextrestored` attribute — getter.
get-oncontextrestored: func(self: offscreen-canvas-handle) -> u64;
/// `oncontextrestored` attribute — setter.
set-oncontextrestored: func(self: offscreen-canvas-handle, value: u64);
}
interface offscreen-canvas-rendering-context2-d {
/// Opaque handle to a host-side `OffscreenCanvasRenderingContext2D` instance.
type offscreen-canvas-rendering-context2-d-handle = u64;
/// `canvas` attribute — getter.
get-canvas: func(self: offscreen-canvas-rendering-context2-d-handle) -> u64;
}
interface custom-element-registry {
/// Opaque handle to a host-side `CustomElementRegistry` instance.
type custom-element-registry-handle = u64;
/// `define()` operation.
define: func(self: custom-element-registry-handle, name: string, %constructor: u64, options: option<u64>);
/// `getName()` operation.
get-name: func(self: custom-element-registry-handle, %constructor: u64) -> option<string>;
/// `whenDefined()` operation.
when-defined: func(self: custom-element-registry-handle, name: string) -> u64;
/// `upgrade()` operation.
upgrade: func(self: custom-element-registry-handle, root: u64);
/// `initialize()` operation.
initialize: func(self: custom-element-registry-handle, root: u64);
}
interface element-internals {
/// Opaque handle to a host-side `ElementInternals` instance.
type element-internals-handle = u64;
/// `shadowRoot` attribute — getter.
get-shadow-root: func(self: element-internals-handle) -> option<u64>;
/// `setFormValue()` operation.
set-form-value: func(self: element-internals-handle, value: option<string>, state: option<string>);
/// `form` attribute — getter.
get-form: func(self: element-internals-handle) -> option<u64>;
/// `setValidity()` operation.
set-validity: func(self: element-internals-handle, %flags: option<u64>, message: option<string>, anchor: option<u64>);
/// `willValidate` attribute — getter.
get-will-validate: func(self: element-internals-handle) -> bool;
/// `validity` attribute — getter.
get-validity: func(self: element-internals-handle) -> u64;
/// `validationMessage` attribute — getter.
get-validation-message: func(self: element-internals-handle) -> string;
/// `checkValidity()` operation.
check-validity: func(self: element-internals-handle) -> bool;
/// `reportValidity()` operation.
report-validity: func(self: element-internals-handle) -> bool;
/// `labels` attribute — getter.
get-labels: func(self: element-internals-handle) -> u64;
/// `states` attribute — getter.
get-states: func(self: element-internals-handle) -> u64;
}
interface visibility-state-entry {
/// Opaque handle to a host-side `VisibilityStateEntry` instance.
type visibility-state-entry-handle = u64;
/// `name` attribute — getter.
get-name: func(self: visibility-state-entry-handle) -> string;
/// `entryType` attribute — getter.
get-entry-type: func(self: visibility-state-entry-handle) -> string;
/// `startTime` attribute — getter.
get-start-time: func(self: visibility-state-entry-handle) -> f64;
/// `duration` attribute — getter.
get-duration: func(self: visibility-state-entry-handle) -> u32;
}
interface user-activation {
/// Opaque handle to a host-side `UserActivation` instance.
type user-activation-handle = u64;
/// `hasBeenActive` attribute — getter.
get-has-been-active: func(self: user-activation-handle) -> bool;
/// `isActive` attribute — getter.
get-is-active: func(self: user-activation-handle) -> bool;
}
interface toggle-event {
/// Opaque handle to a host-side `ToggleEvent` instance.
type toggle-event-handle = u64;
/// `oldState` attribute — getter.
get-old-state: func(self: toggle-event-handle) -> string;
/// `newState` attribute — getter.
get-new-state: func(self: toggle-event-handle) -> string;
/// `source` attribute — getter.
get-source: func(self: toggle-event-handle) -> option<u64>;
}
interface command-event {
/// Opaque handle to a host-side `CommandEvent` instance.
type command-event-handle = u64;
/// `source` attribute — getter.
get-source: func(self: command-event-handle) -> option<u64>;
/// `command` attribute — getter.
get-command: func(self: command-event-handle) -> string;
}
interface element-content-editable {
/// Opaque handle to a host-side `ElementContentEditable` instance.
type element-content-editable-handle = u64;
/// `contentEditable` attribute — getter.
get-content-editable: func(self: element-content-editable-handle) -> string;
/// `contentEditable` attribute — setter.
set-content-editable: func(self: element-content-editable-handle, value: string);
/// `enterKeyHint` attribute — getter.
get-enter-key-hint: func(self: element-content-editable-handle) -> string;
/// `enterKeyHint` attribute — setter.
set-enter-key-hint: func(self: element-content-editable-handle, value: string);
/// `isContentEditable` attribute — getter.
get-is-content-editable: func(self: element-content-editable-handle) -> bool;
/// `inputMode` attribute — getter.
get-input-mode: func(self: element-content-editable-handle) -> string;
/// `inputMode` attribute — setter.
set-input-mode: func(self: element-content-editable-handle, value: string);
}
interface close-watcher {
/// Opaque handle to a host-side `CloseWatcher` instance.
type close-watcher-handle = u64;
/// `requestClose()` operation.
request-close: func(self: close-watcher-handle);
/// `close()` operation.
close: func(self: close-watcher-handle);
/// `destroy()` operation.
destroy: func(self: close-watcher-handle);
/// `oncancel` attribute — getter.
get-oncancel: func(self: close-watcher-handle) -> u64;
/// `oncancel` attribute — setter.
set-oncancel: func(self: close-watcher-handle, value: u64);
/// `onclose` attribute — getter.
get-onclose: func(self: close-watcher-handle) -> u64;
/// `onclose` attribute — setter.
set-onclose: func(self: close-watcher-handle, value: u64);
}
interface data-transfer {
/// Opaque handle to a host-side `DataTransfer` instance.
type data-transfer-handle = u64;
/// `dropEffect` attribute — getter.
get-drop-effect: func(self: data-transfer-handle) -> string;
/// `dropEffect` attribute — setter.
set-drop-effect: func(self: data-transfer-handle, value: string);
/// `effectAllowed` attribute — getter.
get-effect-allowed: func(self: data-transfer-handle) -> string;
/// `effectAllowed` attribute — setter.
set-effect-allowed: func(self: data-transfer-handle, value: string);
/// `items` attribute — getter.
get-items: func(self: data-transfer-handle) -> u64;
/// `setDragImage()` operation.
set-drag-image: func(self: data-transfer-handle, image: u64, x: s32, y: s32);
/// `types` attribute — getter.
get-types: func(self: data-transfer-handle) -> list<string>;
/// `getData()` operation.
get-data: func(self: data-transfer-handle, format: string) -> string;
/// `setData()` operation.
set-data: func(self: data-transfer-handle, format: string, data: string);
/// `clearData()` operation.
clear-data: func(self: data-transfer-handle, format: option<string>);
/// `files` attribute — getter.
get-files: func(self: data-transfer-handle) -> u64;
}
interface data-transfer-item-list {
/// Opaque handle to a host-side `DataTransferItemList` instance.
type data-transfer-item-list-handle = u64;
/// `length` attribute — getter.
get-length: func(self: data-transfer-item-list-handle) -> u32;
/// `DataTransferItem()` operation.
data-transfer-item: func(self: data-transfer-item-list-handle, index: u32);
/// `add()` operation.
add: func(self: data-transfer-item-list-handle, data: string, %type: string) -> option<u64>;
/// `remove()` operation.
remove: func(self: data-transfer-item-list-handle, index: u32);
/// `clear()` operation.
clear: func(self: data-transfer-item-list-handle);
}
interface data-transfer-item {
/// Opaque handle to a host-side `DataTransferItem` instance.
type data-transfer-item-handle = u64;
/// `kind` attribute — getter.
get-kind: func(self: data-transfer-item-handle) -> string;
/// `type` attribute — getter.
get-type: func(self: data-transfer-item-handle) -> string;
/// `getAsString()` operation.
get-as-string: func(self: data-transfer-item-handle, callback: option<u64>);
/// `getAsFile()` operation.
get-as-file: func(self: data-transfer-item-handle) -> option<u64>;
}
interface drag-event {
/// Opaque handle to a host-side `DragEvent` instance.
type drag-event-handle = u64;
/// `dataTransfer` attribute — getter.
get-data-transfer: func(self: drag-event-handle) -> option<u64>;
}
interface popover-target-attributes {
/// Opaque handle to a host-side `PopoverTargetAttributes` instance.
type popover-target-attributes-handle = u64;
/// `popoverTargetElement` attribute — getter.
get-popover-target-element: func(self: popover-target-attributes-handle) -> option<u64>;
/// `popoverTargetElement` attribute — setter.
set-popover-target-element: func(self: popover-target-attributes-handle, value: option<u64>);
/// `popoverTargetAction` attribute — getter.
get-popover-target-action: func(self: popover-target-attributes-handle) -> string;
/// `popoverTargetAction` attribute — setter.
set-popover-target-action: func(self: popover-target-attributes-handle, value: string);
}
interface origin {
/// Opaque handle to a host-side `Origin` instance.
type origin-handle = u64;
/// `from()` operation.
%from: func(value: string) -> u64;
/// `opaque` attribute — getter.
get-opaque: func(self: origin-handle) -> bool;
/// `isSameOrigin()` operation.
is-same-origin: func(self: origin-handle, other: u64) -> bool;
/// `isSameSite()` operation.
is-same-site: func(self: origin-handle, other: u64) -> bool;
}
interface bar-prop {
/// Opaque handle to a host-side `BarProp` instance.
type bar-prop-handle = u64;
/// `visible` attribute — getter.
get-visible: func(self: bar-prop-handle) -> bool;
}
interface location {
/// Opaque handle to a host-side `Location` instance.
type location-handle = u64;
/// `href` attribute — getter.
get-href: func() -> string;
/// `href` attribute — setter.
set-href: func(value: string);
/// `origin` attribute — getter.
get-origin: func() -> string;
/// `protocol` attribute — getter.
get-protocol: func() -> string;
/// `protocol` attribute — setter.
set-protocol: func(value: string);
/// `host` attribute — getter.
get-host: func() -> string;
/// `host` attribute — setter.
set-host: func(value: string);
/// `hostname` attribute — getter.
get-hostname: func() -> string;
/// `hostname` attribute — setter.
set-hostname: func(value: string);
/// `port` attribute — getter.
get-port: func() -> string;
/// `port` attribute — setter.
set-port: func(value: string);
/// `pathname` attribute — getter.
get-pathname: func() -> string;
/// `pathname` attribute — setter.
set-pathname: func(value: string);
/// `search` attribute — getter.
get-search: func() -> string;
/// `search` attribute — setter.
set-search: func(value: string);
/// `hash` attribute — getter.
get-hash: func() -> string;
/// `hash` attribute — setter.
set-hash: func(value: string);
/// `assign()` operation.
assign: func(url: string);
/// `replace()` operation.
replace: func(url: string);
/// `reload()` operation.
reload: func();
/// `ancestorOrigins` attribute — getter.
get-ancestor-origins: func() -> list<string>;
}
interface history {
/// Opaque handle to a host-side `History` instance.
type history-handle = u64;
/// `length` attribute — getter.
get-length: func() -> u32;
/// `scrollRestoration` attribute — getter.
get-scroll-restoration: func() -> u64;
/// `scrollRestoration` attribute — setter.
set-scroll-restoration: func(value: u64);
/// `state` attribute — getter.
get-state: func() -> string;
/// `go()` operation.
go: func(delta: option<s32>);
/// `back()` operation.
back: func();
/// `forward()` operation.
forward: func();
/// `pushState()` operation.
push-state: func(data: string, unused: string, url: option<string>);
/// `replaceState()` operation.
replace-state: func(data: string, unused: string, url: option<string>);
}
interface navigation {
/// Opaque handle to a host-side `Navigation` instance.
type navigation-handle = u64;
/// `entries()` operation.
entries: func(self: navigation-handle) -> list<u64>;
/// `currentEntry` attribute — getter.
get-current-entry: func(self: navigation-handle) -> option<u64>;
/// `updateCurrentEntry()` operation.
update-current-entry: func(self: navigation-handle, options: u64);
/// `transition` attribute — getter.
get-transition: func(self: navigation-handle) -> option<u64>;
/// `activation` attribute — getter.
get-activation: func(self: navigation-handle) -> option<u64>;
/// `canGoBack` attribute — getter.
get-can-go-back: func(self: navigation-handle) -> bool;
/// `canGoForward` attribute — getter.
get-can-go-forward: func(self: navigation-handle) -> bool;
/// `navigate()` operation.
navigate: func(self: navigation-handle, url: string, options: option<u64>) -> u64;
/// `reload()` operation.
reload: func(self: navigation-handle, options: option<u64>) -> u64;
/// `traverseTo()` operation.
traverse-to: func(self: navigation-handle, key: string, options: option<u64>) -> u64;
/// `back()` operation.
back: func(self: navigation-handle, options: option<u64>) -> u64;
/// `forward()` operation.
forward: func(self: navigation-handle, options: option<u64>) -> u64;
/// `onnavigate` attribute — getter.
get-onnavigate: func(self: navigation-handle) -> u64;
/// `onnavigate` attribute — setter.
set-onnavigate: func(self: navigation-handle, value: u64);
/// `onnavigatesuccess` attribute — getter.
get-onnavigatesuccess: func(self: navigation-handle) -> u64;
/// `onnavigatesuccess` attribute — setter.
set-onnavigatesuccess: func(self: navigation-handle, value: u64);
/// `onnavigateerror` attribute — getter.
get-onnavigateerror: func(self: navigation-handle) -> u64;
/// `onnavigateerror` attribute — setter.
set-onnavigateerror: func(self: navigation-handle, value: u64);
/// `oncurrententrychange` attribute — getter.
get-oncurrententrychange: func(self: navigation-handle) -> u64;
/// `oncurrententrychange` attribute — setter.
set-oncurrententrychange: func(self: navigation-handle, value: u64);
}
interface navigation-history-entry {
/// Opaque handle to a host-side `NavigationHistoryEntry` instance.
type navigation-history-entry-handle = u64;
/// `url` attribute — getter.
get-url: func(self: navigation-history-entry-handle) -> option<string>;
/// `key` attribute — getter.
get-key: func(self: navigation-history-entry-handle) -> string;
/// `id` attribute — getter.
get-id: func(self: navigation-history-entry-handle) -> string;
/// `index` attribute — getter.
get-index: func(self: navigation-history-entry-handle) -> s64;
/// `sameDocument` attribute — getter.
get-same-document: func(self: navigation-history-entry-handle) -> bool;
/// `getState()` operation.
get-state: func(self: navigation-history-entry-handle) -> string;
/// `ondispose` attribute — getter.
get-ondispose: func(self: navigation-history-entry-handle) -> u64;
/// `ondispose` attribute — setter.
set-ondispose: func(self: navigation-history-entry-handle, value: u64);
}
interface navigation-transition {
/// Opaque handle to a host-side `NavigationTransition` instance.
type navigation-transition-handle = u64;
/// `navigationType` attribute — getter.
get-navigation-type: func(self: navigation-transition-handle) -> u64;
/// `from` attribute — getter.
get-from: func(self: navigation-transition-handle) -> u64;
/// `to` attribute — getter.
get-to: func(self: navigation-transition-handle) -> u64;
/// `committed` attribute — getter.
get-committed: func(self: navigation-transition-handle) -> u64;
/// `finished` attribute — getter.
get-finished: func(self: navigation-transition-handle) -> u64;
}
interface navigation-activation {
/// Opaque handle to a host-side `NavigationActivation` instance.
type navigation-activation-handle = u64;
/// `from` attribute — getter.
get-from: func(self: navigation-activation-handle) -> option<u64>;
/// `entry` attribute — getter.
get-entry: func(self: navigation-activation-handle) -> u64;
/// `navigationType` attribute — getter.
get-navigation-type: func(self: navigation-activation-handle) -> u64;
}
interface navigate-event {
/// Opaque handle to a host-side `NavigateEvent` instance.
type navigate-event-handle = u64;
/// `navigationType` attribute — getter.
get-navigation-type: func(self: navigate-event-handle) -> u64;
/// `destination` attribute — getter.
get-destination: func(self: navigate-event-handle) -> u64;
/// `canIntercept` attribute — getter.
get-can-intercept: func(self: navigate-event-handle) -> bool;
/// `userInitiated` attribute — getter.
get-user-initiated: func(self: navigate-event-handle) -> bool;
/// `hashChange` attribute — getter.
get-hash-change: func(self: navigate-event-handle) -> bool;
/// `signal` attribute — getter.
get-signal: func(self: navigate-event-handle) -> u64;
/// `formData` attribute — getter.
get-form-data: func(self: navigate-event-handle) -> option<u64>;
/// `downloadRequest` attribute — getter.
get-download-request: func(self: navigate-event-handle) -> option<string>;
/// `info` attribute — getter.
get-info: func(self: navigate-event-handle) -> string;
/// `hasUAVisualTransition` attribute — getter.
get-has-ua-visual-transition: func(self: navigate-event-handle) -> bool;
/// `sourceElement` attribute — getter.
get-source-element: func(self: navigate-event-handle) -> option<u64>;
/// `intercept()` operation.
intercept: func(self: navigate-event-handle, options: option<u64>);
/// `scroll()` operation.
scroll: func(self: navigate-event-handle);
}
interface navigation-precommit-controller {
/// Opaque handle to a host-side `NavigationPrecommitController` instance.
type navigation-precommit-controller-handle = u64;
/// `redirect()` operation.
redirect: func(self: navigation-precommit-controller-handle, url: string, options: option<u64>);
/// `addHandler()` operation.
add-handler: func(self: navigation-precommit-controller-handle, handler: u64);
}
interface navigation-destination {
/// Opaque handle to a host-side `NavigationDestination` instance.
type navigation-destination-handle = u64;
/// `url` attribute — getter.
get-url: func(self: navigation-destination-handle) -> string;
/// `key` attribute — getter.
get-key: func(self: navigation-destination-handle) -> string;
/// `id` attribute — getter.
get-id: func(self: navigation-destination-handle) -> string;
/// `index` attribute — getter.
get-index: func(self: navigation-destination-handle) -> s64;
/// `sameDocument` attribute — getter.
get-same-document: func(self: navigation-destination-handle) -> bool;
/// `getState()` operation.
get-state: func(self: navigation-destination-handle) -> string;
}
interface navigation-current-entry-change-event {
/// Opaque handle to a host-side `NavigationCurrentEntryChangeEvent` instance.
type navigation-current-entry-change-event-handle = u64;
/// `navigationType` attribute — getter.
get-navigation-type: func(self: navigation-current-entry-change-event-handle) -> option<u64>;
/// `from` attribute — getter.
get-from: func(self: navigation-current-entry-change-event-handle) -> u64;
}
interface pop-state-event {
/// Opaque handle to a host-side `PopStateEvent` instance.
type pop-state-event-handle = u64;
/// `state` attribute — getter.
get-state: func(self: pop-state-event-handle) -> string;
/// `hasUAVisualTransition` attribute — getter.
get-has-ua-visual-transition: func(self: pop-state-event-handle) -> bool;
}
interface hash-change-event {
/// Opaque handle to a host-side `HashChangeEvent` instance.
type hash-change-event-handle = u64;
/// `oldURL` attribute — getter.
get-old-url: func(self: hash-change-event-handle) -> string;
/// `newURL` attribute — getter.
get-new-url: func(self: hash-change-event-handle) -> string;
}
interface page-swap-event {
/// Opaque handle to a host-side `PageSwapEvent` instance.
type page-swap-event-handle = u64;
/// `activation` attribute — getter.
get-activation: func(self: page-swap-event-handle) -> option<u64>;
/// `viewTransition` attribute — getter.
get-view-transition: func(self: page-swap-event-handle) -> option<u64>;
}
interface page-reveal-event {
/// Opaque handle to a host-side `PageRevealEvent` instance.
type page-reveal-event-handle = u64;
/// `viewTransition` attribute — getter.
get-view-transition: func(self: page-reveal-event-handle) -> option<u64>;
}
interface page-transition-event {
/// Opaque handle to a host-side `PageTransitionEvent` instance.
type page-transition-event-handle = u64;
/// `persisted` attribute — getter.
get-persisted: func(self: page-transition-event-handle) -> bool;
}
interface before-unload-event {
/// Opaque handle to a host-side `BeforeUnloadEvent` instance.
type before-unload-event-handle = u64;
/// `returnValue` attribute — getter.
get-return-value: func(self: before-unload-event-handle) -> string;
/// `returnValue` attribute — setter.
set-return-value: func(self: before-unload-event-handle, value: string);
}
interface not-restored-reason-details {
/// Opaque handle to a host-side `NotRestoredReasonDetails` instance.
type not-restored-reason-details-handle = u64;
/// `reason` attribute — getter.
get-reason: func(self: not-restored-reason-details-handle) -> string;
/// `toJSON()` operation.
to-json: func(self: not-restored-reason-details-handle) -> u64;
}
interface not-restored-reasons {
/// Opaque handle to a host-side `NotRestoredReasons` instance.
type not-restored-reasons-handle = u64;
/// `src` attribute — getter.
get-src: func(self: not-restored-reasons-handle) -> option<string>;
/// `id` attribute — getter.
get-id: func(self: not-restored-reasons-handle) -> option<string>;
/// `name` attribute — getter.
get-name: func(self: not-restored-reasons-handle) -> option<string>;
/// `url` attribute — getter.
get-url: func(self: not-restored-reasons-handle) -> option<string>;
/// `reasons` attribute — getter.
get-reasons: func(self: not-restored-reasons-handle) -> option<list<u64>>;
/// `children` attribute — getter.
get-children: func(self: not-restored-reasons-handle) -> option<list<u64>>;
/// `toJSON()` operation.
to-json: func(self: not-restored-reasons-handle) -> u64;
}
interface error-event {
/// Opaque handle to a host-side `ErrorEvent` instance.
type error-event-handle = u64;
/// `message` attribute — getter.
get-message: func(self: error-event-handle) -> string;
/// `filename` attribute — getter.
get-filename: func(self: error-event-handle) -> string;
/// `lineno` attribute — getter.
get-lineno: func(self: error-event-handle) -> u32;
/// `colno` attribute — getter.
get-colno: func(self: error-event-handle) -> u32;
/// `error` attribute — getter.
get-error: func(self: error-event-handle) -> string;
}
interface promise-rejection-event {
/// Opaque handle to a host-side `PromiseRejectionEvent` instance.
type promise-rejection-event-handle = u64;
/// `promise` attribute — getter.
get-promise: func(self: promise-rejection-event-handle) -> u64;
/// `reason` attribute — getter.
get-reason: func(self: promise-rejection-event-handle) -> string;
}
interface dom-parser {
/// Opaque handle to a host-side `DOMParser` instance.
type dom-parser-handle = u64;
/// `parseFromString()` operation.
parse-from-string: func(self: dom-parser-handle, %string: string, %type: u64) -> u64;
}
interface xml-serializer {
/// Opaque handle to a host-side `XMLSerializer` instance.
type xml-serializer-handle = u64;
/// `serializeToString()` operation.
serialize-to-string: func(self: xml-serializer-handle, root: u64) -> string;
}
interface navigator-id {
/// Opaque handle to a host-side `NavigatorID` instance.
type navigator-id-handle = u64;
/// `appCodeName` attribute — getter.
get-app-code-name: func(self: navigator-id-handle) -> string;
/// `appName` attribute — getter.
get-app-name: func(self: navigator-id-handle) -> string;
/// `appVersion` attribute — getter.
get-app-version: func(self: navigator-id-handle) -> string;
/// `platform` attribute — getter.
get-platform: func(self: navigator-id-handle) -> string;
/// `product` attribute — getter.
get-product: func(self: navigator-id-handle) -> string;
/// `productSub` attribute — getter.
get-product-sub: func(self: navigator-id-handle) -> string;
/// `userAgent` attribute — getter.
get-user-agent: func(self: navigator-id-handle) -> string;
/// `vendor` attribute — getter.
get-vendor: func(self: navigator-id-handle) -> string;
/// `vendorSub` attribute — getter.
get-vendor-sub: func(self: navigator-id-handle) -> string;
/// `taintEnabled()` operation.
taint-enabled: func(self: navigator-id-handle) -> bool;
/// `oscpu` attribute — getter.
get-oscpu: func(self: navigator-id-handle) -> string;
}
interface navigator-language {
/// Opaque handle to a host-side `NavigatorLanguage` instance.
type navigator-language-handle = u64;
/// `language` attribute — getter.
get-language: func(self: navigator-language-handle) -> string;
/// `languages` attribute — getter.
get-languages: func(self: navigator-language-handle) -> list<string>;
}
interface navigator-on-line {
/// Opaque handle to a host-side `NavigatorOnLine` instance.
type navigator-on-line-handle = u64;
/// `onLine` attribute — getter.
get-on-line: func(self: navigator-on-line-handle) -> bool;
}
interface navigator-content-utils {
/// Opaque handle to a host-side `NavigatorContentUtils` instance.
type navigator-content-utils-handle = u64;
/// `registerProtocolHandler()` operation.
register-protocol-handler: func(self: navigator-content-utils-handle, scheme: string, url: string);
/// `unregisterProtocolHandler()` operation.
unregister-protocol-handler: func(self: navigator-content-utils-handle, scheme: string, url: string);
}
interface navigator-cookies {
/// Opaque handle to a host-side `NavigatorCookies` instance.
type navigator-cookies-handle = u64;
/// `cookieEnabled` attribute — getter.
get-cookie-enabled: func(self: navigator-cookies-handle) -> bool;
}
interface navigator-plugins {
/// Opaque handle to a host-side `NavigatorPlugins` instance.
type navigator-plugins-handle = u64;
/// `plugins` attribute — getter.
get-plugins: func(self: navigator-plugins-handle) -> u64;
/// `mimeTypes` attribute — getter.
get-mime-types: func(self: navigator-plugins-handle) -> u64;
/// `javaEnabled()` operation.
java-enabled: func(self: navigator-plugins-handle) -> bool;
/// `pdfViewerEnabled` attribute — getter.
get-pdf-viewer-enabled: func(self: navigator-plugins-handle) -> bool;
}
interface plugin-array {
/// Opaque handle to a host-side `PluginArray` instance.
type plugin-array-handle = u64;
/// `refresh()` operation.
refresh: func(self: plugin-array-handle);
/// `length` attribute — getter.
get-length: func(self: plugin-array-handle) -> u32;
/// `item()` operation.
item: func(self: plugin-array-handle, index: u32) -> option<u64>;
/// `namedItem()` operation.
named-item: func(self: plugin-array-handle, name: string) -> option<u64>;
}
interface mime-type-array {
/// Opaque handle to a host-side `MimeTypeArray` instance.
type mime-type-array-handle = u64;
/// `length` attribute — getter.
get-length: func(self: mime-type-array-handle) -> u32;
/// `item()` operation.
item: func(self: mime-type-array-handle, index: u32) -> option<u64>;
/// `namedItem()` operation.
named-item: func(self: mime-type-array-handle, name: string) -> option<u64>;
}
interface plugin {
/// Opaque handle to a host-side `Plugin` instance.
type plugin-handle = u64;
/// `name` attribute — getter.
get-name: func(self: plugin-handle) -> string;
/// `description` attribute — getter.
get-description: func(self: plugin-handle) -> string;
/// `filename` attribute — getter.
get-filename: func(self: plugin-handle) -> string;
/// `length` attribute — getter.
get-length: func(self: plugin-handle) -> u32;
/// `item()` operation.
item: func(self: plugin-handle, index: u32) -> option<u64>;
/// `namedItem()` operation.
named-item: func(self: plugin-handle, name: string) -> option<u64>;
}
interface mime-type {
/// Opaque handle to a host-side `MimeType` instance.
type mime-type-handle = u64;
/// `type` attribute — getter.
get-type: func(self: mime-type-handle) -> string;
/// `description` attribute — getter.
get-description: func(self: mime-type-handle) -> string;
/// `suffixes` attribute — getter.
get-suffixes: func(self: mime-type-handle) -> string;
/// `enabledPlugin` attribute — getter.
get-enabled-plugin: func(self: mime-type-handle) -> u64;
}
interface image-data {
/// Opaque handle to a host-side `ImageData` instance.
type image-data-handle = u64;
/// `width` attribute — getter.
get-width: func(self: image-data-handle) -> u32;
/// `height` attribute — getter.
get-height: func(self: image-data-handle) -> u32;
/// `data` attribute — getter.
get-data: func(self: image-data-handle) -> u64;
/// `pixelFormat` attribute — getter.
get-pixel-format: func(self: image-data-handle) -> u64;
/// `colorSpace` attribute — getter.
get-color-space: func(self: image-data-handle) -> u64;
}
interface image-bitmap {
/// Opaque handle to a host-side `ImageBitmap` instance.
type image-bitmap-handle = u64;
/// `width` attribute — getter.
get-width: func(self: image-bitmap-handle) -> u32;
/// `height` attribute — getter.
get-height: func(self: image-bitmap-handle) -> u32;
/// `close()` operation.
close: func(self: image-bitmap-handle);
}
interface animation-frame-provider {
/// Opaque handle to a host-side `AnimationFrameProvider` instance.
type animation-frame-provider-handle = u64;
/// `requestAnimationFrame()` operation.
request-animation-frame: func(self: animation-frame-provider-handle, callback: u64) -> u32;
/// `cancelAnimationFrame()` operation.
cancel-animation-frame: func(self: animation-frame-provider-handle, handle: u32);
}
interface message-event {
/// Opaque handle to a host-side `MessageEvent` instance.
type message-event-handle = u64;
/// `data` attribute — getter.
get-data: func(self: message-event-handle) -> string;
/// `origin` attribute — getter.
get-origin: func(self: message-event-handle) -> string;
/// `lastEventId` attribute — getter.
get-last-event-id: func(self: message-event-handle) -> string;
/// `source` attribute — getter.
get-source: func(self: message-event-handle) -> option<u64>;
/// `ports` attribute — getter.
get-ports: func(self: message-event-handle) -> list<u64>;
/// `initMessageEvent()` operation.
init-message-event: func(self: message-event-handle, %type: string, bubbles: option<bool>, cancelable: option<bool>, data: option<string>, origin: option<string>, last-event-id: option<string>, source: option<u64>, ports: option<list<u64>>);
}
interface event-source {
/// Opaque handle to a host-side `EventSource` instance.
type event-source-handle = u64;
/// `url` attribute — getter.
get-url: func(self: event-source-handle) -> string;
/// `withCredentials` attribute — getter.
get-with-credentials: func(self: event-source-handle) -> bool;
/// `readyState` attribute — getter.
get-ready-state: func(self: event-source-handle) -> u16;
/// `onopen` attribute — getter.
get-onopen: func(self: event-source-handle) -> u64;
/// `onopen` attribute — setter.
set-onopen: func(self: event-source-handle, value: u64);
/// `onmessage` attribute — getter.
get-onmessage: func(self: event-source-handle) -> u64;
/// `onmessage` attribute — setter.
set-onmessage: func(self: event-source-handle, value: u64);
/// `onerror` attribute — getter.
get-onerror: func(self: event-source-handle) -> u64;
/// `onerror` attribute — setter.
set-onerror: func(self: event-source-handle, value: u64);
/// `close()` operation.
close: func(self: event-source-handle);
}
interface message-channel {
/// Opaque handle to a host-side `MessageChannel` instance.
type message-channel-handle = u64;
/// `port1` attribute — getter.
get-port1: func(self: message-channel-handle) -> u64;
/// `port2` attribute — getter.
get-port2: func(self: message-channel-handle) -> u64;
}
interface message-event-target {
/// Opaque handle to a host-side `MessageEventTarget` instance.
type message-event-target-handle = u64;
/// `onmessage` attribute — getter.
get-onmessage: func(self: message-event-target-handle) -> u64;
/// `onmessage` attribute — setter.
set-onmessage: func(self: message-event-target-handle, value: u64);
/// `onmessageerror` attribute — getter.
get-onmessageerror: func(self: message-event-target-handle) -> u64;
/// `onmessageerror` attribute — setter.
set-onmessageerror: func(self: message-event-target-handle, value: u64);
}
interface message-port {
/// Opaque handle to a host-side `MessagePort` instance.
type message-port-handle = u64;
/// `postMessage()` operation.
post-message: func(self: message-port-handle, message: string, transfer: list<u64>);
/// `start()` operation.
start: func(self: message-port-handle);
/// `close()` operation.
close: func(self: message-port-handle);
/// `onclose` attribute — getter.
get-onclose: func(self: message-port-handle) -> u64;
/// `onclose` attribute — setter.
set-onclose: func(self: message-port-handle, value: u64);
}
interface broadcast-channel {
/// Opaque handle to a host-side `BroadcastChannel` instance.
type broadcast-channel-handle = u64;
/// `name` attribute — getter.
get-name: func(self: broadcast-channel-handle) -> string;
/// `postMessage()` operation.
post-message: func(self: broadcast-channel-handle, message: string);
/// `close()` operation.
close: func(self: broadcast-channel-handle);
/// `onmessage` attribute — getter.
get-onmessage: func(self: broadcast-channel-handle) -> u64;
/// `onmessage` attribute — setter.
set-onmessage: func(self: broadcast-channel-handle, value: u64);
/// `onmessageerror` attribute — getter.
get-onmessageerror: func(self: broadcast-channel-handle) -> u64;
/// `onmessageerror` attribute — setter.
set-onmessageerror: func(self: broadcast-channel-handle, value: u64);
}
interface worker-global-scope {
/// Opaque handle to a host-side `WorkerGlobalScope` instance.
type worker-global-scope-handle = u64;
/// `self` attribute — getter.
get-self: func(self: worker-global-scope-handle) -> u64;
/// `location` attribute — getter.
get-location: func(self: worker-global-scope-handle) -> u64;
/// `navigator` attribute — getter.
get-navigator: func(self: worker-global-scope-handle) -> u64;
/// `importScripts()` operation.
import-scripts: func(self: worker-global-scope-handle, urls: list<string>);
/// `onerror` attribute — getter.
get-onerror: func(self: worker-global-scope-handle) -> u64;
/// `onerror` attribute — setter.
set-onerror: func(self: worker-global-scope-handle, value: u64);
/// `onlanguagechange` attribute — getter.
get-onlanguagechange: func(self: worker-global-scope-handle) -> u64;
/// `onlanguagechange` attribute — setter.
set-onlanguagechange: func(self: worker-global-scope-handle, value: u64);
/// `onoffline` attribute — getter.
get-onoffline: func(self: worker-global-scope-handle) -> u64;
/// `onoffline` attribute — setter.
set-onoffline: func(self: worker-global-scope-handle, value: u64);
/// `ononline` attribute — getter.
get-ononline: func(self: worker-global-scope-handle) -> u64;
/// `ononline` attribute — setter.
set-ononline: func(self: worker-global-scope-handle, value: u64);
/// `onrejectionhandled` attribute — getter.
get-onrejectionhandled: func(self: worker-global-scope-handle) -> u64;
/// `onrejectionhandled` attribute — setter.
set-onrejectionhandled: func(self: worker-global-scope-handle, value: u64);
/// `onunhandledrejection` attribute — getter.
get-onunhandledrejection: func(self: worker-global-scope-handle) -> u64;
/// `onunhandledrejection` attribute — setter.
set-onunhandledrejection: func(self: worker-global-scope-handle, value: u64);
}
interface dedicated-worker-global-scope {
/// Opaque handle to a host-side `DedicatedWorkerGlobalScope` instance.
type dedicated-worker-global-scope-handle = u64;
/// `name` attribute — getter.
get-name: func(self: dedicated-worker-global-scope-handle) -> string;
/// `postMessage()` operation.
post-message: func(self: dedicated-worker-global-scope-handle, message: string, transfer: list<u64>);
/// `close()` operation.
close: func(self: dedicated-worker-global-scope-handle);
}
interface shared-worker-global-scope {
/// Opaque handle to a host-side `SharedWorkerGlobalScope` instance.
type shared-worker-global-scope-handle = u64;
/// `name` attribute — getter.
get-name: func(self: shared-worker-global-scope-handle) -> string;
/// `close()` operation.
close: func(self: shared-worker-global-scope-handle);
/// `onconnect` attribute — getter.
get-onconnect: func(self: shared-worker-global-scope-handle) -> u64;
/// `onconnect` attribute — setter.
set-onconnect: func(self: shared-worker-global-scope-handle, value: u64);
}
interface abstract-worker {
/// Opaque handle to a host-side `AbstractWorker` instance.
type abstract-worker-handle = u64;
/// `onerror` attribute — getter.
get-onerror: func(self: abstract-worker-handle) -> u64;
/// `onerror` attribute — setter.
set-onerror: func(self: abstract-worker-handle, value: u64);
}
interface worker {
/// Opaque handle to a host-side `Worker` instance.
type worker-handle = u64;
/// `terminate()` operation.
terminate: func(self: worker-handle);
/// `postMessage()` operation.
post-message: func(self: worker-handle, message: string, transfer: list<u64>);
}
interface shared-worker {
/// Opaque handle to a host-side `SharedWorker` instance.
type shared-worker-handle = u64;
/// `port` attribute — getter.
get-port: func(self: shared-worker-handle) -> u64;
}
interface navigator-concurrent-hardware {
/// Opaque handle to a host-side `NavigatorConcurrentHardware` instance.
type navigator-concurrent-hardware-handle = u64;
/// `hardwareConcurrency` attribute — getter.
get-hardware-concurrency: func(self: navigator-concurrent-hardware-handle) -> u64;
}
interface worker-navigator {
/// Opaque handle to a host-side `WorkerNavigator` instance.
type worker-navigator-handle = u64;
/// `mediaCapabilities` attribute — getter.
get-media-capabilities: func(self: worker-navigator-handle) -> u64;
/// `permissions` attribute — getter.
get-permissions: func(self: worker-navigator-handle) -> u64;
/// `serviceWorker` attribute — getter.
get-service-worker: func(self: worker-navigator-handle) -> u64;
}
interface worker-location {
/// Opaque handle to a host-side `WorkerLocation` instance.
type worker-location-handle = u64;
/// `href` attribute — getter.
get-href: func(self: worker-location-handle) -> u64;
/// `href` attribute — setter.
set-href: func(self: worker-location-handle, value: u64);
/// `origin` attribute — getter.
get-origin: func(self: worker-location-handle) -> string;
/// `protocol` attribute — getter.
get-protocol: func(self: worker-location-handle) -> string;
/// `host` attribute — getter.
get-host: func(self: worker-location-handle) -> string;
/// `hostname` attribute — getter.
get-hostname: func(self: worker-location-handle) -> string;
/// `port` attribute — getter.
get-port: func(self: worker-location-handle) -> string;
/// `pathname` attribute — getter.
get-pathname: func(self: worker-location-handle) -> string;
/// `search` attribute — getter.
get-search: func(self: worker-location-handle) -> string;
/// `hash` attribute — getter.
get-hash: func(self: worker-location-handle) -> string;
}
interface worklet {
/// Opaque handle to a host-side `Worklet` instance.
type worklet-handle = u64;
/// `addModule()` operation.
add-module: func(self: worklet-handle, module-url: string, options: option<u64>) -> u64;
}
interface storage {
/// Opaque handle to a host-side `Storage` instance.
type storage-handle = u64;
/// `length` attribute — getter.
get-length: func(self: storage-handle) -> u32;
/// `key()` operation.
key: func(self: storage-handle, index: u32) -> option<string>;
/// `getItem()` operation.
get-item: func(self: storage-handle, key: string) -> option<string>;
/// `setItem()` operation.
set-item: func(self: storage-handle, key: string, value: string);
/// `removeItem()` operation.
remove-item: func(self: storage-handle, key: string);
/// `clear()` operation.
clear: func(self: storage-handle);
}
interface window-session-storage {
/// Opaque handle to a host-side `WindowSessionStorage` instance.
type window-session-storage-handle = u64;
/// `sessionStorage` attribute — getter.
get-session-storage: func(self: window-session-storage-handle) -> u64;
}
interface window-local-storage {
/// Opaque handle to a host-side `WindowLocalStorage` instance.
type window-local-storage-handle = u64;
/// `localStorage` attribute — getter.
get-local-storage: func(self: window-local-storage-handle) -> u64;
}
interface storage-event {
/// Opaque handle to a host-side `StorageEvent` instance.
type storage-event-handle = u64;
/// `key` attribute — getter.
get-key: func(self: storage-event-handle) -> option<string>;
/// `oldValue` attribute — getter.
get-old-value: func(self: storage-event-handle) -> option<string>;
/// `newValue` attribute — getter.
get-new-value: func(self: storage-event-handle) -> option<string>;
/// `url` attribute — getter.
get-url: func(self: storage-event-handle) -> string;
/// `storageArea` attribute — getter.
get-storage-area: func(self: storage-event-handle) -> option<u64>;
/// `initStorageEvent()` operation.
init-storage-event: func(self: storage-event-handle, %type: string, bubbles: option<bool>, cancelable: option<bool>, key: option<string>, old-value: option<string>, new-value: option<string>, url: option<string>, storage-area: option<u64>);
}
interface html-marquee-element {
/// Opaque handle to a host-side `HTMLMarqueeElement` instance.
type html-marquee-element-handle = u64;
/// `behavior` attribute — getter.
get-behavior: func(self: html-marquee-element-handle) -> string;
/// `behavior` attribute — setter.
set-behavior: func(self: html-marquee-element-handle, value: string);
/// `bgColor` attribute — getter.
get-bg-color: func(self: html-marquee-element-handle) -> string;
/// `bgColor` attribute — setter.
set-bg-color: func(self: html-marquee-element-handle, value: string);
/// `direction` attribute — getter.
get-direction: func(self: html-marquee-element-handle) -> string;
/// `direction` attribute — setter.
set-direction: func(self: html-marquee-element-handle, value: string);
/// `height` attribute — getter.
get-height: func(self: html-marquee-element-handle) -> string;
/// `height` attribute — setter.
set-height: func(self: html-marquee-element-handle, value: string);
/// `hspace` attribute — getter.
get-hspace: func(self: html-marquee-element-handle) -> u32;
/// `hspace` attribute — setter.
set-hspace: func(self: html-marquee-element-handle, value: u32);
/// `loop` attribute — getter.
get-loop: func(self: html-marquee-element-handle) -> s32;
/// `loop` attribute — setter.
set-loop: func(self: html-marquee-element-handle, value: s32);
/// `scrollAmount` attribute — getter.
get-scroll-amount: func(self: html-marquee-element-handle) -> u32;
/// `scrollAmount` attribute — setter.
set-scroll-amount: func(self: html-marquee-element-handle, value: u32);
/// `scrollDelay` attribute — getter.
get-scroll-delay: func(self: html-marquee-element-handle) -> u32;
/// `scrollDelay` attribute — setter.
set-scroll-delay: func(self: html-marquee-element-handle, value: u32);
/// `trueSpeed` attribute — getter.
get-true-speed: func(self: html-marquee-element-handle) -> bool;
/// `trueSpeed` attribute — setter.
set-true-speed: func(self: html-marquee-element-handle, value: bool);
/// `vspace` attribute — getter.
get-vspace: func(self: html-marquee-element-handle) -> u32;
/// `vspace` attribute — setter.
set-vspace: func(self: html-marquee-element-handle, value: u32);
/// `width` attribute — getter.
get-width: func(self: html-marquee-element-handle) -> string;
/// `width` attribute — setter.
set-width: func(self: html-marquee-element-handle, value: string);
/// `start()` operation.
start: func(self: html-marquee-element-handle);
/// `stop()` operation.
stop: func(self: html-marquee-element-handle);
}
interface html-frame-set-element {
/// Opaque handle to a host-side `HTMLFrameSetElement` instance.
type html-frame-set-element-handle = u64;
/// `cols` attribute — getter.
get-cols: func(self: html-frame-set-element-handle) -> string;
/// `cols` attribute — setter.
set-cols: func(self: html-frame-set-element-handle, value: string);
/// `rows` attribute — getter.
get-rows: func(self: html-frame-set-element-handle) -> string;
/// `rows` attribute — setter.
set-rows: func(self: html-frame-set-element-handle, value: string);
}
interface html-frame-element {
/// Opaque handle to a host-side `HTMLFrameElement` instance.
type html-frame-element-handle = u64;
/// `name` attribute — getter.
get-name: func(self: html-frame-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-frame-element-handle, value: string);
/// `scrolling` attribute — getter.
get-scrolling: func(self: html-frame-element-handle) -> string;
/// `scrolling` attribute — setter.
set-scrolling: func(self: html-frame-element-handle, value: string);
/// `src` attribute — getter.
get-src: func(self: html-frame-element-handle) -> string;
/// `src` attribute — setter.
set-src: func(self: html-frame-element-handle, value: string);
/// `frameBorder` attribute — getter.
get-frame-border: func(self: html-frame-element-handle) -> string;
/// `frameBorder` attribute — setter.
set-frame-border: func(self: html-frame-element-handle, value: string);
/// `longDesc` attribute — getter.
get-long-desc: func(self: html-frame-element-handle) -> string;
/// `longDesc` attribute — setter.
set-long-desc: func(self: html-frame-element-handle, value: string);
/// `noResize` attribute — getter.
get-no-resize: func(self: html-frame-element-handle) -> bool;
/// `noResize` attribute — setter.
set-no-resize: func(self: html-frame-element-handle, value: bool);
/// `contentDocument` attribute — getter.
get-content-document: func(self: html-frame-element-handle) -> option<u64>;
/// `contentWindow` attribute — getter.
get-content-window: func(self: html-frame-element-handle) -> option<u64>;
/// `marginHeight` attribute — getter.
get-margin-height: func(self: html-frame-element-handle) -> string;
/// `marginHeight` attribute — setter.
set-margin-height: func(self: html-frame-element-handle, value: string);
/// `marginWidth` attribute — getter.
get-margin-width: func(self: html-frame-element-handle) -> string;
/// `marginWidth` attribute — setter.
set-margin-width: func(self: html-frame-element-handle, value: string);
}
interface html-directory-element {
/// Opaque handle to a host-side `HTMLDirectoryElement` instance.
type html-directory-element-handle = u64;
/// `compact` attribute — getter.
get-compact: func(self: html-directory-element-handle) -> bool;
/// `compact` attribute — setter.
set-compact: func(self: html-directory-element-handle, value: bool);
}
interface html-font-element {
/// Opaque handle to a host-side `HTMLFontElement` instance.
type html-font-element-handle = u64;
/// `color` attribute — getter.
get-color: func(self: html-font-element-handle) -> string;
/// `color` attribute — setter.
set-color: func(self: html-font-element-handle, value: string);
/// `face` attribute — getter.
get-face: func(self: html-font-element-handle) -> string;
/// `face` attribute — setter.
set-face: func(self: html-font-element-handle, value: string);
/// `size` attribute — getter.
get-size: func(self: html-font-element-handle) -> string;
/// `size` attribute — setter.
set-size: func(self: html-font-element-handle, value: string);
}
interface html-param-element {
/// Opaque handle to a host-side `HTMLParamElement` instance.
type html-param-element-handle = u64;
/// `name` attribute — getter.
get-name: func(self: html-param-element-handle) -> string;
/// `name` attribute — setter.
set-name: func(self: html-param-element-handle, value: string);
/// `value` attribute — getter.
get-value: func(self: html-param-element-handle) -> string;
/// `value` attribute — setter.
set-value: func(self: html-param-element-handle, value: string);
/// `type` attribute — getter.
get-type: func(self: html-param-element-handle) -> string;
/// `type` attribute — setter.
set-type: func(self: html-param-element-handle, value: string);
/// `valueType` attribute — getter.
get-value-type: func(self: html-param-element-handle) -> string;
/// `valueType` attribute — setter.
set-value-type: func(self: html-param-element-handle, value: string);
}
interface external {
/// Opaque handle to a host-side `External` instance.
type external-handle = u64;
/// `AddSearchProvider()` operation.
add-search-provider: func(self: external-handle);
/// `IsSearchProviderInstalled()` operation.
is-search-provider-installed: func(self: external-handle);
}