mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Backed out changeset 7baa72e0d62c (bug 1637486) Backed out changeset 24e38d0cf349 (bug 1635702) Backed out changeset a99469886218 (bug 1635702) Backed out changeset 0bd06c295951 (bug 1637211) Backed out changeset 893f40e8ac70 (bug 1637211) Backed out changeset 7e4449460eee (bug 1636952) Backed out changeset abc7724f7d24 (bug1637109) Backed out changeset 3c4aacfb190a (bug 1637245) Backed out changeset 525bb6234d13 (bug 1636978) Backed out changeset 835a90775878 (bug 1636575) Backed out changeset 4bdd2bf8bfdc (bug 1637101) Backed out changeset 798fcf5806f2 (bug 1636448) Backed out changeset b149189f5709 (bug 1636853) Backed out changeset eaaf46684e6b (bug 1636853) Backed out changeset bf2c79a02367 (bug 1635643) Backed out changeset f7490320b8df (bug 1636959) Backed out changeset 39802676a7be (bug 1633673) Backed out changeset 7653d8ea2bb1 (bug 1633673) Backed out changeset 8ff49ccdfaae (bug 1636565) Backed out changeset b762ce260918 (bug 1636875) Backed out changeset b51eb4a114f1 (bug 1636910) Backed out changeset 9be231469888 (bug 1636876) Backed out changeset 5f31e57991c2 (bug 1636876) Backed out changeset e7ed97376186 (bug 1636833) Backed out changeset 15829e9f9a7e (bug 1636834) Backed out changeset 1f72f3314c56 (bug 1636693) Backed out changeset dcaef651485b (bug 1636693) Backed out changeset 6ed863230896 (bug1636000) Backed out changeset a78843c7ef14 (bug 1636652) Backed out changeset d57c402d46bb (bug 1636115) Backed out changeset 8a0d48c8c1b7 (bug 1636115) Backed out changeset 11648974ec00 (bug 1636605) Backed out changeset 0f1c47233fd4 (bug 1635336) Backed out changeset 89945c20767c (bug 1636345) Backed out changeset 1507bec4555a (bug 1636310) Backed out changeset c958b21b4327 (bug 1636310) Backed out changeset 38b803feeb5d (bug 1636573) Backed out changeset 51e57a232c52 (bug 1636462) Backed out changeset 3df317ddf64e (bug 1636475) Backed out changeset 3558d6cb07cb (bug 1634611) Backed out changeset eba6ef15a7aa (bug 1636449) Backed out changeset a3d80f6ec681 (bug 1636322) Backed out changeset c8af1076f821 (bug 1635928) Backed out changeset eed3838091a8 (bug 1635928) Backed out changeset 3dd0ae6d2877 (bug1636532) Backed out changeset 6363aded3202 (bug 1636527) Backed out changeset a91492f9bd3a (bug 1636288) Backed out changeset e794ef17f710 (bug 1636399) Backed out changeset 00d3b4351cae (bug 1636399) Backed out changeset eea7ac7afa28 (bug 1636258) Backed out changeset 198d06f4a3ac (bug 1636435) Backed out changeset a9af0e6c6aad (bug 1636435) Backed out changeset 7d8a478f5229 (bug 1636358) Backed out changeset b9d805f4ad84 (bug 1625663) Backed out changeset 3ba9753e432d (bug 1625663) Backed out changeset 00a302798522 (bug 1634781) Backed out changeset 61cb70c9acd2 (bug 1634781) Backed out changeset 1c3f93564684 (bug 1636172) Backed out changeset f2f9303db917 (bug 1636099) Backed out changeset ebe454a8398d (bug 1636099) Backed out changeset 07851273e1f0 (bug 1635996) Backed out changeset 66b52df06b60 (bug 1636090) Backed out changeset 283a55f78426 (bug 1636090) Backed out changeset ba81dc78cf8c (bug 1634630) Backed out changeset c01d4b24f3d4 (bug 1634630) Backed out changeset ef9f55092965 (bug 1636230) Backed out changeset 17bd0106bfa3 (bug 1636134) Backed out changeset 6a4900721412 (bug 1636134) Backed out changeset 5ec143514b25 (bug 1636020) Backed out changeset c95bfc5b1754 (bug 1636126) Backed out changeset ef83e0b2b667 (bug 1636126) Backed out changeset 42a3d86a2a35 (bug 1635988) Backed out changeset 563f9d59de8a (bug 1636066) Backed out changeset b5023fec8e1b (bug 1636066) Backed out changeset eed68249208e (bug 1589335) Backed out changeset 023fc1d6e3ae (bug 1636045) Backed out changeset 8460a9f97320 (bug 1635195) Backed out changeset 79bc807ec203 (bug 1635195) Backed out changeset d94d118c0756 (bug 1475158) Backed out changeset 77dc3674000e (bug 1475158) Backed out changeset 4ce227790d3d (bug 1636017) Backed out changeset 4a9c2c6d4bce (bug 1635804) Backed out changeset 6875eb73b47b (bug 1635804) Backed out changeset e42d99fdda4d (bug 1635994) Backed out changeset b6ec228c3010 (bug 1635994) Backed out changeset 0f3fcbd7d18a (bug 1635896) Backed out changeset bda58835c160 (bug 1635971) Backed out changeset 50d4da5c6410 (bug 1635957) Backed out changeset 4a41195e5501 (bug 1635957) Backed out changeset 566871c7c848 (bug 1626529) Backed out changeset faebee3f4438 (bug 1626529) Backed out changeset ead62ce864f1 (bug 1633611) Backed out changeset 580f0a6ef09a (bug 1635673) Backed out changeset 379915b4d665 (bug 1635845) Backed out changeset 78843b66d294 (bug 1635780) Backed out changeset 915823097c24 (bug 1635780) Backed out changeset 333f3d7e16bd (bug 1635808) Backed out changeset 8c4300aeeadf (bug 1635808) Backed out changeset 427c0d23b596 (bug 1635838) Backed out changeset 912b48052ffb (bug 1635751) Backed out changeset 7b6728023cd7 (bug 1635751) Backed out changeset 315ed672866a (bug 1635712) Backed out changeset 6385d5f5470b (bug 1635712) Backed out changeset 5de79055b0a3 (bug 1635304) Backed out changeset 8a4401aa7e89 (bug 1634510) Backed out changeset 697737336cb3 (bug 1635782) Backed out changeset 1e3eb5c49723 (bug 1635817) Backed out changeset 0600b9c3391a (bug 1635815) Backed out changeset f021dcb83231 (bug 1635813) Backed out changeset 2cfe4a548db9 (bug 1633999) Backed out changeset 9c5ed78fdae7 (bug 1634622) Backed out changeset 4c8c1aae1c9b (bug 1635593) Backed out changeset 0b8d699ede30 (bug 1634161) Backed out changeset d90d43b8b0d2 (bug 1634161) Backed out changeset b183b4ccbbe0 (bug 1634697) Backed out changeset f329a21efb6a (bug 1635323) Backed out changeset 5ebe3065955e (bug 1635323) Backed out changeset 2c48ea79c318 (bug 1633074) Backed out changeset 5b9c257df30d (bug 1634183) Backed out changeset 42255f44a64a (bug 1634613) Backed out changeset 04a37833dbd2 (bug 1635337) Backed out changeset 4399371f8772 (bug 1629089) Backed out changeset 0c392fcc97ed (bug 1635342) Backed out changeset 267d7af3baff (bug 1635342) Backed out changeset fdaa51024719 (bug 1633606) Backed out changeset 2b16450fca68 (bug1635306) Backed out changeset 81572d467873 (bug 1635541) Backed out changeset c389789d23c2 (bug 1635541) Backed out changeset 912dee6ba76e (bug 1635217) Backed out changeset f1c61d14947a (bug 1635217) Backed out changeset 8b49336c0021 (bug 1635479) Backed out changeset 8ee704cc798a (bug 1635315) Backed out changeset e6a223161a01 (bug 1635316) Backed out changeset e765268e2111 (bug 1635539) Backed out changeset 4cdd5e7c02c4 (bug 1634297) Backed out changeset 7d6082e757cb (bug 1634297) Backed out changeset 22978f4eca60 (bug 1634942) Backed out changeset ea32130c91cb (bug 1635418) Backed out changeset 7497cfcc89b8 (bug 1593063) Backed out changeset aa30e97ff8f4 (bug 1593063) Backed out changeset 273397b59609 (bug 1625005) Backed out changeset 9fb6c336ec14 (bug 1629179) Backed out changeset 3bea7f4bce08 (bug 1629179) Backed out changeset 5fa2fa5c4100 (bug 1634118) Backed out changeset 3c129f771366 (bug 1629063) Backed out changeset e3f5022d2e98 (bug 1634157) Backed out changeset 6b4bbb6a1829 (bug 1635043) Backed out changeset 08f9c82b1cae (bug 1635043) Backed out changeset a1684145f954 (bug 1634725) Backed out changeset 1e7a63b8201d (bug 1633854) Backed out changeset 96e901867dfc (bug 1633854) Backed out changeset 7e4ddbfd531a (bug 1633593) Backed out changeset ed206d4e48fb (bug 1635138) Backed out changeset 56680380cb12 (bug 1635138) Backed out changeset 128ca965d89e (bug 1635141) Backed out changeset d6c45563fc0a (bug 1635086) Backed out changeset 3886f4322f2b (bug 1635086) Backed out changeset 2c391b283120 (bug 1631821) Backed out changeset 820195d706c4 (bug 1635049) Backed out changeset 89395cf3875c (bug 1634581) Backed out changeset 295488f01cf2 (bug 1634581) Backed out changeset 07af68b342f0 (bug 1634794) Backed out changeset 6cfbeef8c071 (bug 1634794) Backed out changeset 498d0e6754f6 (bug 1635078) Backed out changeset c8b17acc49d2 (bug 1635004) Backed out changeset a91930887fa2 (bug 1634944) Backed out changeset ee2fbd0fd53e (bug 1634802) Backed out changeset 59894d4cd777 (bug 1634802) Backed out changeset 780f4e8e09cc (bug 1634807) Backed out changeset d9d2b3b28bb5 (bug 1634807) Backed out changeset f6023c604230 (bug 1630074) Backed out changeset 332ae0b9c362 (bug 1632614) Backed out changeset cd09a475f4dd (bug 1634774) Backed out changeset 57540cedac41 (bug 1634136) Backed out changeset 6c23227d3b6a (bug 1634612) Backed out changeset dd7ae0531977 (bug 1634575) Backed out changeset 7088d1301e7a (bug 1634070) Backed out changeset 5b60b7cf3f2f (bug 1632046) Backed out changeset 22ed9be42752 (bug 1634529) Backed out changeset 50af11dcaed0 (bug 1633588) Backed out changeset 93184a590f46 (bug 1633588) Backed out changeset 733bc969a32e (bug 1630901) Backed out changeset 88321df62173 (bug 1633934) Backed out changeset ebd1dc23636c (bug 1635425) Backed out changeset 2c37cd98181c (bug 1634114) Backed out changeset 1c3968f96da6 (bug 1634114) Backed out changeset 7e65c7d4c10c (bug 1633691) Backed out changeset ad8618c32984 (bug 1634214) Backed out changeset da0daa759fdc (bug 1635453) Backed out changeset 9f6188ac30ce (bug 1633787) Backed out changeset fb48a1a411b8 (bug 1633787) Backed out changeset 6c2a0a65eb4f (bug 1634718) Backed out changeset a8072af57203 (bug 1634718) Backed out changeset 2a86ee8bf532 (bug 1634298) Backed out changeset 87cf70157822 (bug 1633690) Backed out changeset aa5aaef185f4 (bug 1634249) Backed out changeset 1e8b09009b9c (bug1633441) Backed out changeset 7081cf7a95c6 (bug1633441) Backed out changeset a2740075b6ea (bug 1628246) Backed out changeset 7bf043c2f796 (bug 1628246) Backed out changeset c54d3d641172 (bug 1634150) Backed out changeset bb9e97bac1f6 (bug 1634150) Backed out changeset 8bb2e88875a5 (bug 1633594) Backed out changeset 818305611ebe (bug 1633868) Backed out changeset 88c0485b7dc3 (bug 1631998) Backed out changeset 64d14cda8fbd (bug 1633577) Backed out changeset 417cd0a8f560 (bug 1633577) Backed out changeset 1952a07d64e3 (bug 1634067) Backed out changeset bf8634838d26 (bug 1600404) Backed out changeset 0f565474c9ea (bug 1600404)
2615 lines
83 KiB
Text
2615 lines
83 KiB
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into reffy-reports
|
|
// (https://github.com/tidoust/reffy-reports)
|
|
// Source: HTML Standard (https://html.spec.whatwg.org/multipage/)
|
|
|
|
[Exposed=Window,
|
|
LegacyUnenumerableNamedProperties]
|
|
interface HTMLAllCollection {
|
|
readonly attribute unsigned long length;
|
|
getter Element (unsigned long index);
|
|
getter (HTMLCollection or Element)? namedItem(DOMString name);
|
|
(HTMLCollection or Element)? item(optional DOMString nameOrIndex);
|
|
|
|
// Note: HTMLAllCollection objects have a custom [[Call]] internal method and an [[IsHTMLDDA]] internal slot.
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLFormControlsCollection : HTMLCollection {
|
|
// inherits length and item()
|
|
getter (RadioNodeList or Element)? namedItem(DOMString name); // shadows inherited namedItem()
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface RadioNodeList : NodeList {
|
|
attribute DOMString value;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLOptionsCollection : HTMLCollection {
|
|
// inherits item(), namedItem()
|
|
[CEReactions] attribute unsigned long length; // shadows inherited length
|
|
[CEReactions] setter void (unsigned long index, HTMLOptionElement? option);
|
|
[CEReactions] void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
|
[CEReactions] void remove(long index);
|
|
attribute long selectedIndex;
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface DOMStringList {
|
|
readonly attribute unsigned long length;
|
|
getter DOMString? item(unsigned long index);
|
|
boolean contains(DOMString string);
|
|
};
|
|
|
|
enum DocumentReadyState { "loading", "interactive", "complete" };
|
|
typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
|
|
|
|
[LegacyOverrideBuiltIns]
|
|
partial interface Document {
|
|
// resource metadata management
|
|
[PutForwards=href, LegacyUnforgeable] readonly attribute Location? location;
|
|
attribute USVString domain;
|
|
readonly attribute USVString referrer;
|
|
attribute USVString cookie;
|
|
readonly attribute DOMString lastModified;
|
|
readonly attribute DocumentReadyState readyState;
|
|
|
|
// DOM tree accessors
|
|
getter object (DOMString name);
|
|
[CEReactions] attribute DOMString title;
|
|
[CEReactions] attribute DOMString dir;
|
|
[CEReactions] attribute HTMLElement? body;
|
|
readonly attribute HTMLHeadElement? head;
|
|
[SameObject] readonly attribute HTMLCollection images;
|
|
[SameObject] readonly attribute HTMLCollection embeds;
|
|
[SameObject] readonly attribute HTMLCollection plugins;
|
|
[SameObject] readonly attribute HTMLCollection links;
|
|
[SameObject] readonly attribute HTMLCollection forms;
|
|
[SameObject] readonly attribute HTMLCollection scripts;
|
|
NodeList getElementsByName(DOMString elementName);
|
|
readonly attribute HTMLOrSVGScriptElement? currentScript; // classic scripts in a document tree only
|
|
|
|
// dynamic markup insertion
|
|
[CEReactions] Document open(optional DOMString unused1, optional DOMString unused2); // both arguments are ignored
|
|
WindowProxy? open(USVString url, DOMString name, DOMString features);
|
|
[CEReactions] void close();
|
|
[CEReactions] void write(DOMString... text);
|
|
[CEReactions] void writeln(DOMString... text);
|
|
|
|
// user interaction
|
|
readonly attribute WindowProxy? defaultView;
|
|
boolean hasFocus();
|
|
[CEReactions] attribute DOMString designMode;
|
|
[CEReactions] boolean execCommand(DOMString commandId, optional boolean showUI = false, optional DOMString value = "");
|
|
boolean queryCommandEnabled(DOMString commandId);
|
|
boolean queryCommandIndeterm(DOMString commandId);
|
|
boolean queryCommandState(DOMString commandId);
|
|
boolean queryCommandSupported(DOMString commandId);
|
|
DOMString queryCommandValue(DOMString commandId);
|
|
|
|
// special event handler IDL attributes that only apply to Document objects
|
|
[LegacyLenientThis] attribute EventHandler onreadystatechange;
|
|
|
|
// also has obsolete members
|
|
};
|
|
Document includes GlobalEventHandlers;
|
|
Document includes DocumentAndElementEventHandlers;
|
|
|
|
partial interface mixin DocumentOrShadowRoot {
|
|
readonly attribute Element? activeElement;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLElement : Element {
|
|
[HTMLConstructor] constructor();
|
|
|
|
// metadata attributes
|
|
[CEReactions] attribute DOMString title;
|
|
[CEReactions] attribute DOMString lang;
|
|
[CEReactions] attribute boolean translate;
|
|
[CEReactions] attribute DOMString dir;
|
|
|
|
// user interaction
|
|
[CEReactions] attribute boolean hidden;
|
|
void click();
|
|
[CEReactions] attribute DOMString accessKey;
|
|
readonly attribute DOMString accessKeyLabel;
|
|
[CEReactions] attribute boolean draggable;
|
|
[CEReactions] attribute boolean spellcheck;
|
|
[CEReactions] attribute DOMString autocapitalize;
|
|
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText;
|
|
|
|
ElementInternals attachInternals();
|
|
};
|
|
|
|
HTMLElement includes GlobalEventHandlers;
|
|
HTMLElement includes DocumentAndElementEventHandlers;
|
|
HTMLElement includes ElementContentEditable;
|
|
HTMLElement includes HTMLOrSVGElement;
|
|
|
|
[Exposed=Window]
|
|
interface HTMLUnknownElement : HTMLElement {
|
|
// Note: intentionally no [HTMLConstructor]
|
|
};
|
|
|
|
interface mixin HTMLOrSVGElement {
|
|
[SameObject] readonly attribute DOMStringMap dataset;
|
|
attribute DOMString nonce; // intentionally no [CEReactions]
|
|
|
|
[CEReactions] attribute boolean autofocus;
|
|
[CEReactions] attribute long tabIndex;
|
|
void focus(optional FocusOptions options = {});
|
|
void blur();
|
|
};
|
|
|
|
[Exposed=Window,
|
|
LegacyOverrideBuiltIns]
|
|
interface DOMStringMap {
|
|
getter DOMString (DOMString name);
|
|
[CEReactions] setter void (DOMString name, DOMString value);
|
|
[CEReactions] deleter void (DOMString name);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLHtmlElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLHeadElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTitleElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString text;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLBaseElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute USVString href;
|
|
[CEReactions] attribute DOMString target;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLLinkElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute USVString href;
|
|
[CEReactions] attribute DOMString? crossOrigin;
|
|
[CEReactions] attribute DOMString rel;
|
|
[CEReactions] attribute DOMString as; // (default "")
|
|
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
|
|
[CEReactions] attribute DOMString media;
|
|
[CEReactions] attribute DOMString integrity;
|
|
[CEReactions] attribute DOMString hreflang;
|
|
[CEReactions] attribute DOMString type;
|
|
[SameObject, PutForwards=value] readonly attribute DOMTokenList sizes;
|
|
[CEReactions] attribute USVString imageSrcset;
|
|
[CEReactions] attribute DOMString imageSizes;
|
|
[CEReactions] attribute DOMString referrerPolicy;
|
|
};
|
|
HTMLLinkElement includes LinkStyle;
|
|
|
|
[Exposed=Window]
|
|
interface HTMLMetaElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute DOMString httpEquiv;
|
|
[CEReactions] attribute DOMString content;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLStyleElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString media;
|
|
};
|
|
HTMLStyleElement includes LinkStyle;
|
|
|
|
[Exposed=Window]
|
|
interface HTMLBodyElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
HTMLBodyElement includes WindowEventHandlers;
|
|
|
|
[Exposed=Window]
|
|
interface HTMLHeadingElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLParagraphElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLHRElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLPreElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLQuoteElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute USVString cite;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLOListElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute boolean reversed;
|
|
[CEReactions] attribute long start;
|
|
[CEReactions] attribute DOMString type;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLUListElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLMenuElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLLIElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute long value;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLDListElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLDivElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLAnchorElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString target;
|
|
[CEReactions] attribute DOMString download;
|
|
[CEReactions] attribute USVString ping;
|
|
[CEReactions] attribute DOMString rel;
|
|
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
|
|
[CEReactions] attribute DOMString hreflang;
|
|
[CEReactions] attribute DOMString type;
|
|
|
|
[CEReactions] attribute DOMString text;
|
|
|
|
[CEReactions] attribute DOMString referrerPolicy;
|
|
};
|
|
HTMLAnchorElement includes HTMLHyperlinkElementUtils;
|
|
|
|
[Exposed=Window]
|
|
interface HTMLDataElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString value;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTimeElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString dateTime;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLSpanElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLBRElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
interface mixin HTMLHyperlinkElementUtils {
|
|
[CEReactions] stringifier attribute USVString href;
|
|
readonly attribute USVString origin;
|
|
[CEReactions] attribute USVString protocol;
|
|
[CEReactions] attribute USVString username;
|
|
[CEReactions] attribute USVString password;
|
|
[CEReactions] attribute USVString host;
|
|
[CEReactions] attribute USVString hostname;
|
|
[CEReactions] attribute USVString port;
|
|
[CEReactions] attribute USVString pathname;
|
|
[CEReactions] attribute USVString search;
|
|
[CEReactions] attribute USVString hash;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLModElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute USVString cite;
|
|
[CEReactions] attribute DOMString dateTime;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLPictureElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLSourceElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute USVString src;
|
|
[CEReactions] attribute DOMString type;
|
|
[CEReactions] attribute USVString srcset;
|
|
[CEReactions] attribute DOMString sizes;
|
|
[CEReactions] attribute DOMString media;
|
|
};
|
|
|
|
[Exposed=Window,
|
|
LegacyFactoryFunction=Image(optional unsigned long width, optional unsigned long height)]
|
|
interface HTMLImageElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString alt;
|
|
[CEReactions] attribute USVString src;
|
|
[CEReactions] attribute USVString srcset;
|
|
[CEReactions] attribute DOMString sizes;
|
|
[CEReactions] attribute DOMString? crossOrigin;
|
|
[CEReactions] attribute DOMString useMap;
|
|
[CEReactions] attribute boolean isMap;
|
|
[CEReactions] attribute unsigned long width;
|
|
[CEReactions] attribute unsigned long height;
|
|
readonly attribute unsigned long naturalWidth;
|
|
readonly attribute unsigned long naturalHeight;
|
|
readonly attribute boolean complete;
|
|
readonly attribute USVString currentSrc;
|
|
[CEReactions] attribute DOMString referrerPolicy;
|
|
[CEReactions] attribute DOMString decoding;
|
|
[CEReactions] attribute DOMString loading;
|
|
|
|
Promise<void> decode();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLIFrameElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute USVString src;
|
|
[CEReactions] attribute DOMString srcdoc;
|
|
[CEReactions] attribute DOMString name;
|
|
[SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox;
|
|
[CEReactions] attribute DOMString allow;
|
|
[CEReactions] attribute boolean allowFullscreen;
|
|
[CEReactions] attribute boolean allowPaymentRequest;
|
|
[CEReactions] attribute DOMString width;
|
|
[CEReactions] attribute DOMString height;
|
|
[CEReactions] attribute DOMString referrerPolicy;
|
|
readonly attribute Document? contentDocument;
|
|
readonly attribute WindowProxy? contentWindow;
|
|
Document? getSVGDocument();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLEmbedElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute USVString src;
|
|
[CEReactions] attribute DOMString type;
|
|
[CEReactions] attribute DOMString width;
|
|
[CEReactions] attribute DOMString height;
|
|
Document? getSVGDocument();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLObjectElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute USVString data;
|
|
[CEReactions] attribute DOMString type;
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute DOMString useMap;
|
|
readonly attribute HTMLFormElement? form;
|
|
[CEReactions] attribute DOMString width;
|
|
[CEReactions] attribute DOMString height;
|
|
readonly attribute Document? contentDocument;
|
|
readonly attribute WindowProxy? contentWindow;
|
|
Document? getSVGDocument();
|
|
|
|
readonly attribute boolean willValidate;
|
|
readonly attribute ValidityState validity;
|
|
readonly attribute DOMString validationMessage;
|
|
boolean checkValidity();
|
|
boolean reportValidity();
|
|
void setCustomValidity(DOMString error);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLParamElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute DOMString value;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLVideoElement : HTMLMediaElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute unsigned long width;
|
|
[CEReactions] attribute unsigned long height;
|
|
readonly attribute unsigned long videoWidth;
|
|
readonly attribute unsigned long videoHeight;
|
|
[CEReactions] attribute USVString poster;
|
|
[CEReactions] attribute boolean playsInline;
|
|
};
|
|
|
|
[Exposed=Window,
|
|
LegacyFactoryFunction=Audio(optional DOMString src)]
|
|
interface HTMLAudioElement : HTMLMediaElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTrackElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString kind;
|
|
[CEReactions] attribute USVString src;
|
|
[CEReactions] attribute DOMString srclang;
|
|
[CEReactions] attribute DOMString label;
|
|
[CEReactions] attribute boolean default;
|
|
|
|
const unsigned short NONE = 0;
|
|
const unsigned short LOADING = 1;
|
|
const unsigned short LOADED = 2;
|
|
const unsigned short ERROR = 3;
|
|
readonly attribute unsigned short readyState;
|
|
|
|
readonly attribute TextTrack track;
|
|
};
|
|
|
|
enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
|
|
typedef (MediaStream or MediaSource or Blob) MediaProvider;
|
|
|
|
[Exposed=Window]
|
|
interface HTMLMediaElement : HTMLElement {
|
|
|
|
// error state
|
|
readonly attribute MediaError? error;
|
|
|
|
// network state
|
|
[CEReactions] attribute USVString src;
|
|
attribute MediaProvider? srcObject;
|
|
readonly attribute USVString currentSrc;
|
|
[CEReactions] attribute DOMString? crossOrigin;
|
|
const unsigned short NETWORK_EMPTY = 0;
|
|
const unsigned short NETWORK_IDLE = 1;
|
|
const unsigned short NETWORK_LOADING = 2;
|
|
const unsigned short NETWORK_NO_SOURCE = 3;
|
|
readonly attribute unsigned short networkState;
|
|
[CEReactions] attribute DOMString preload;
|
|
readonly attribute TimeRanges buffered;
|
|
void load();
|
|
CanPlayTypeResult canPlayType(DOMString type);
|
|
|
|
// ready state
|
|
const unsigned short HAVE_NOTHING = 0;
|
|
const unsigned short HAVE_METADATA = 1;
|
|
const unsigned short HAVE_CURRENT_DATA = 2;
|
|
const unsigned short HAVE_FUTURE_DATA = 3;
|
|
const unsigned short HAVE_ENOUGH_DATA = 4;
|
|
readonly attribute unsigned short readyState;
|
|
readonly attribute boolean seeking;
|
|
|
|
// playback state
|
|
attribute double currentTime;
|
|
void fastSeek(double time);
|
|
readonly attribute unrestricted double duration;
|
|
object getStartDate();
|
|
readonly attribute boolean paused;
|
|
attribute double defaultPlaybackRate;
|
|
attribute double playbackRate;
|
|
readonly attribute TimeRanges played;
|
|
readonly attribute TimeRanges seekable;
|
|
readonly attribute boolean ended;
|
|
[CEReactions] attribute boolean autoplay;
|
|
[CEReactions] attribute boolean loop;
|
|
Promise<void> play();
|
|
void pause();
|
|
|
|
// controls
|
|
[CEReactions] attribute boolean controls;
|
|
attribute double volume;
|
|
attribute boolean muted;
|
|
[CEReactions] attribute boolean defaultMuted;
|
|
|
|
// tracks
|
|
[SameObject] readonly attribute AudioTrackList audioTracks;
|
|
[SameObject] readonly attribute VideoTrackList videoTracks;
|
|
[SameObject] readonly attribute TextTrackList textTracks;
|
|
TextTrack addTextTrack(TextTrackKind kind, optional DOMString label = "", optional DOMString language = "");
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface MediaError {
|
|
const unsigned short MEDIA_ERR_ABORTED = 1;
|
|
const unsigned short MEDIA_ERR_NETWORK = 2;
|
|
const unsigned short MEDIA_ERR_DECODE = 3;
|
|
const unsigned short MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
|
|
|
|
readonly attribute unsigned short code;
|
|
readonly attribute DOMString message;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface AudioTrackList : EventTarget {
|
|
readonly attribute unsigned long length;
|
|
getter AudioTrack (unsigned long index);
|
|
AudioTrack? getTrackById(DOMString id);
|
|
|
|
attribute EventHandler onchange;
|
|
attribute EventHandler onaddtrack;
|
|
attribute EventHandler onremovetrack;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface AudioTrack {
|
|
readonly attribute DOMString id;
|
|
readonly attribute DOMString kind;
|
|
readonly attribute DOMString label;
|
|
readonly attribute DOMString language;
|
|
attribute boolean enabled;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface VideoTrackList : EventTarget {
|
|
readonly attribute unsigned long length;
|
|
getter VideoTrack (unsigned long index);
|
|
VideoTrack? getTrackById(DOMString id);
|
|
readonly attribute long selectedIndex;
|
|
|
|
attribute EventHandler onchange;
|
|
attribute EventHandler onaddtrack;
|
|
attribute EventHandler onremovetrack;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface VideoTrack {
|
|
readonly attribute DOMString id;
|
|
readonly attribute DOMString kind;
|
|
readonly attribute DOMString label;
|
|
readonly attribute DOMString language;
|
|
attribute boolean selected;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface TextTrackList : EventTarget {
|
|
readonly attribute unsigned long length;
|
|
getter TextTrack (unsigned long index);
|
|
TextTrack? getTrackById(DOMString id);
|
|
|
|
attribute EventHandler onchange;
|
|
attribute EventHandler onaddtrack;
|
|
attribute EventHandler onremovetrack;
|
|
};
|
|
|
|
enum TextTrackMode { "disabled", "hidden", "showing" };
|
|
enum TextTrackKind { "subtitles", "captions", "descriptions", "chapters", "metadata" };
|
|
|
|
[Exposed=Window]
|
|
interface TextTrack : EventTarget {
|
|
readonly attribute TextTrackKind kind;
|
|
readonly attribute DOMString label;
|
|
readonly attribute DOMString language;
|
|
|
|
readonly attribute DOMString id;
|
|
readonly attribute DOMString inBandMetadataTrackDispatchType;
|
|
|
|
attribute TextTrackMode mode;
|
|
|
|
readonly attribute TextTrackCueList? cues;
|
|
readonly attribute TextTrackCueList? activeCues;
|
|
|
|
void addCue(TextTrackCue cue);
|
|
void removeCue(TextTrackCue cue);
|
|
|
|
attribute EventHandler oncuechange;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface TextTrackCueList {
|
|
readonly attribute unsigned long length;
|
|
getter TextTrackCue (unsigned long index);
|
|
TextTrackCue? getCueById(DOMString id);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface TextTrackCue : EventTarget {
|
|
readonly attribute TextTrack? track;
|
|
|
|
attribute DOMString id;
|
|
attribute double startTime;
|
|
attribute double endTime;
|
|
attribute boolean pauseOnExit;
|
|
|
|
attribute EventHandler onenter;
|
|
attribute EventHandler onexit;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface TimeRanges {
|
|
readonly attribute unsigned long length;
|
|
double start(unsigned long index);
|
|
double end(unsigned long index);
|
|
};
|
|
|
|
[Exposed=Window,
|
|
Constructor(DOMString type, optional TrackEventInit eventInitDict = {})]
|
|
interface TrackEvent : Event {
|
|
readonly attribute (VideoTrack or AudioTrack or TextTrack)? track;
|
|
};
|
|
|
|
dictionary TrackEventInit : EventInit {
|
|
(VideoTrack or AudioTrack or TextTrack)? track = null;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLMapElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString name;
|
|
[SameObject] readonly attribute HTMLCollection areas;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLAreaElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString alt;
|
|
[CEReactions] attribute DOMString coords;
|
|
[CEReactions] attribute DOMString shape;
|
|
[CEReactions] attribute DOMString target;
|
|
[CEReactions] attribute DOMString download;
|
|
[CEReactions] attribute USVString ping;
|
|
[CEReactions] attribute DOMString rel;
|
|
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
|
|
[CEReactions] attribute DOMString referrerPolicy;
|
|
};
|
|
HTMLAreaElement includes HTMLHyperlinkElementUtils;
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTableElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute HTMLTableCaptionElement? caption;
|
|
HTMLTableCaptionElement createCaption();
|
|
[CEReactions] void deleteCaption();
|
|
|
|
[CEReactions] attribute HTMLTableSectionElement? tHead;
|
|
HTMLTableSectionElement createTHead();
|
|
[CEReactions] void deleteTHead();
|
|
|
|
[CEReactions] attribute HTMLTableSectionElement? tFoot;
|
|
HTMLTableSectionElement createTFoot();
|
|
[CEReactions] void deleteTFoot();
|
|
|
|
[SameObject] readonly attribute HTMLCollection tBodies;
|
|
HTMLTableSectionElement createTBody();
|
|
|
|
[SameObject] readonly attribute HTMLCollection rows;
|
|
HTMLTableRowElement insertRow(optional long index = -1);
|
|
[CEReactions] void deleteRow(long index);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTableCaptionElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTableColElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute unsigned long span;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTableSectionElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[SameObject] readonly attribute HTMLCollection rows;
|
|
HTMLTableRowElement insertRow(optional long index = -1);
|
|
[CEReactions] void deleteRow(long index);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTableRowElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
readonly attribute long rowIndex;
|
|
readonly attribute long sectionRowIndex;
|
|
[SameObject] readonly attribute HTMLCollection cells;
|
|
HTMLTableCellElement insertCell(optional long index = -1);
|
|
[CEReactions] void deleteCell(long index);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTableCellElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute unsigned long colSpan;
|
|
[CEReactions] attribute unsigned long rowSpan;
|
|
[CEReactions] attribute DOMString headers;
|
|
readonly attribute long cellIndex;
|
|
|
|
[CEReactions] attribute DOMString scope; // only conforming for th elements
|
|
[CEReactions] attribute DOMString abbr; // only conforming for th elements
|
|
};
|
|
|
|
[Exposed=Window,
|
|
LegacyOverrideBuiltIns,
|
|
LegacyUnenumerableNamedProperties]
|
|
interface HTMLFormElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString acceptCharset;
|
|
[CEReactions] attribute USVString action;
|
|
[CEReactions] attribute DOMString autocomplete;
|
|
[CEReactions] attribute DOMString enctype;
|
|
[CEReactions] attribute DOMString encoding;
|
|
[CEReactions] attribute DOMString method;
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute boolean noValidate;
|
|
[CEReactions] attribute DOMString target;
|
|
[CEReactions] attribute DOMString rel;
|
|
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
|
|
|
|
[SameObject] readonly attribute HTMLFormControlsCollection elements;
|
|
readonly attribute unsigned long length;
|
|
getter Element (unsigned long index);
|
|
getter (RadioNodeList or Element) (DOMString name);
|
|
|
|
void submit();
|
|
void requestSubmit(optional HTMLElement? submitter = null);
|
|
[CEReactions] void reset();
|
|
boolean checkValidity();
|
|
boolean reportValidity();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLLabelElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
readonly attribute HTMLFormElement? form;
|
|
[CEReactions] attribute DOMString htmlFor;
|
|
readonly attribute HTMLElement? control;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLInputElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString accept;
|
|
[CEReactions] attribute DOMString alt;
|
|
[CEReactions] attribute DOMString autocomplete;
|
|
[CEReactions] attribute boolean defaultChecked;
|
|
attribute boolean checked;
|
|
[CEReactions] attribute DOMString dirName;
|
|
[CEReactions] attribute boolean disabled;
|
|
readonly attribute HTMLFormElement? form;
|
|
attribute FileList? files;
|
|
[CEReactions] attribute USVString formAction;
|
|
[CEReactions] attribute DOMString formEnctype;
|
|
[CEReactions] attribute DOMString formMethod;
|
|
[CEReactions] attribute boolean formNoValidate;
|
|
[CEReactions] attribute DOMString formTarget;
|
|
[CEReactions] attribute unsigned long height;
|
|
attribute boolean indeterminate;
|
|
readonly attribute HTMLElement? list;
|
|
[CEReactions] attribute DOMString max;
|
|
[CEReactions] attribute long maxLength;
|
|
[CEReactions] attribute DOMString min;
|
|
[CEReactions] attribute long minLength;
|
|
[CEReactions] attribute boolean multiple;
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute DOMString pattern;
|
|
[CEReactions] attribute DOMString placeholder;
|
|
[CEReactions] attribute boolean readOnly;
|
|
[CEReactions] attribute boolean required;
|
|
[CEReactions] attribute unsigned long size;
|
|
[CEReactions] attribute USVString src;
|
|
[CEReactions] attribute DOMString step;
|
|
[CEReactions] attribute DOMString type;
|
|
[CEReactions] attribute DOMString defaultValue;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString value;
|
|
attribute object? valueAsDate;
|
|
attribute unrestricted double valueAsNumber;
|
|
[CEReactions] attribute unsigned long width;
|
|
|
|
void stepUp(optional long n = 1);
|
|
void stepDown(optional long n = 1);
|
|
|
|
readonly attribute boolean willValidate;
|
|
readonly attribute ValidityState validity;
|
|
readonly attribute DOMString validationMessage;
|
|
boolean checkValidity();
|
|
boolean reportValidity();
|
|
void setCustomValidity(DOMString error);
|
|
|
|
readonly attribute NodeList? labels;
|
|
|
|
void select();
|
|
attribute unsigned long? selectionStart;
|
|
attribute unsigned long? selectionEnd;
|
|
attribute DOMString? selectionDirection;
|
|
void setRangeText(DOMString replacement);
|
|
void setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");
|
|
void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLButtonElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute boolean disabled;
|
|
readonly attribute HTMLFormElement? form;
|
|
[CEReactions] attribute USVString formAction;
|
|
[CEReactions] attribute DOMString formEnctype;
|
|
[CEReactions] attribute DOMString formMethod;
|
|
[CEReactions] attribute boolean formNoValidate;
|
|
[CEReactions] attribute DOMString formTarget;
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute DOMString type;
|
|
[CEReactions] attribute DOMString value;
|
|
|
|
readonly attribute boolean willValidate;
|
|
readonly attribute ValidityState validity;
|
|
readonly attribute DOMString validationMessage;
|
|
boolean checkValidity();
|
|
boolean reportValidity();
|
|
void setCustomValidity(DOMString error);
|
|
|
|
readonly attribute NodeList labels;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLSelectElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString autocomplete;
|
|
[CEReactions] attribute boolean disabled;
|
|
readonly attribute HTMLFormElement? form;
|
|
[CEReactions] attribute boolean multiple;
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute boolean required;
|
|
[CEReactions] attribute unsigned long size;
|
|
|
|
readonly attribute DOMString type;
|
|
|
|
[SameObject] readonly attribute HTMLOptionsCollection options;
|
|
[CEReactions] attribute unsigned long length;
|
|
getter Element? item(unsigned long index);
|
|
HTMLOptionElement? namedItem(DOMString name);
|
|
[CEReactions] void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
|
[CEReactions] void remove(); // ChildNode overload
|
|
[CEReactions] void remove(long index);
|
|
[CEReactions] setter void (unsigned long index, HTMLOptionElement? option);
|
|
|
|
[SameObject] readonly attribute HTMLCollection selectedOptions;
|
|
attribute long selectedIndex;
|
|
attribute DOMString value;
|
|
|
|
readonly attribute boolean willValidate;
|
|
readonly attribute ValidityState validity;
|
|
readonly attribute DOMString validationMessage;
|
|
boolean checkValidity();
|
|
boolean reportValidity();
|
|
void setCustomValidity(DOMString error);
|
|
|
|
readonly attribute NodeList labels;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLDataListElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[SameObject] readonly attribute HTMLCollection options;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLOptGroupElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute boolean disabled;
|
|
[CEReactions] attribute DOMString label;
|
|
};
|
|
|
|
[Exposed=Window,
|
|
LegacyFactoryFunction=Option(optional DOMString text = "", optional DOMString value, optional boolean defaultSelected = false, optional boolean selected = false)]
|
|
interface HTMLOptionElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute boolean disabled;
|
|
readonly attribute HTMLFormElement? form;
|
|
[CEReactions] attribute DOMString label;
|
|
[CEReactions] attribute boolean defaultSelected;
|
|
attribute boolean selected;
|
|
[CEReactions] attribute DOMString value;
|
|
|
|
[CEReactions] attribute DOMString text;
|
|
readonly attribute long index;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTextAreaElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString autocomplete;
|
|
[CEReactions] attribute unsigned long cols;
|
|
[CEReactions] attribute DOMString dirName;
|
|
[CEReactions] attribute boolean disabled;
|
|
readonly attribute HTMLFormElement? form;
|
|
[CEReactions] attribute long maxLength;
|
|
[CEReactions] attribute long minLength;
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute DOMString placeholder;
|
|
[CEReactions] attribute boolean readOnly;
|
|
[CEReactions] attribute boolean required;
|
|
[CEReactions] attribute unsigned long rows;
|
|
[CEReactions] attribute DOMString wrap;
|
|
|
|
readonly attribute DOMString type;
|
|
[CEReactions] attribute DOMString defaultValue;
|
|
attribute [LegacyNullToEmptyString] DOMString value;
|
|
readonly attribute unsigned long textLength;
|
|
|
|
readonly attribute boolean willValidate;
|
|
readonly attribute ValidityState validity;
|
|
readonly attribute DOMString validationMessage;
|
|
boolean checkValidity();
|
|
boolean reportValidity();
|
|
void setCustomValidity(DOMString error);
|
|
|
|
readonly attribute NodeList labels;
|
|
|
|
void select();
|
|
attribute unsigned long selectionStart;
|
|
attribute unsigned long selectionEnd;
|
|
attribute DOMString selectionDirection;
|
|
void setRangeText(DOMString replacement);
|
|
void setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");
|
|
void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLOutputElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[SameObject, PutForwards=value] readonly attribute DOMTokenList htmlFor;
|
|
readonly attribute HTMLFormElement? form;
|
|
[CEReactions] attribute DOMString name;
|
|
|
|
readonly attribute DOMString type;
|
|
[CEReactions] attribute DOMString defaultValue;
|
|
[CEReactions] attribute DOMString value;
|
|
|
|
readonly attribute boolean willValidate;
|
|
readonly attribute ValidityState validity;
|
|
readonly attribute DOMString validationMessage;
|
|
boolean checkValidity();
|
|
boolean reportValidity();
|
|
void setCustomValidity(DOMString error);
|
|
|
|
readonly attribute NodeList labels;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLProgressElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute double value;
|
|
[CEReactions] attribute double max;
|
|
readonly attribute double position;
|
|
readonly attribute NodeList labels;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLMeterElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute double value;
|
|
[CEReactions] attribute double min;
|
|
[CEReactions] attribute double max;
|
|
[CEReactions] attribute double low;
|
|
[CEReactions] attribute double high;
|
|
[CEReactions] attribute double optimum;
|
|
readonly attribute NodeList labels;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLFieldSetElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute boolean disabled;
|
|
readonly attribute HTMLFormElement? form;
|
|
[CEReactions] attribute DOMString name;
|
|
|
|
readonly attribute DOMString type;
|
|
|
|
[SameObject] readonly attribute HTMLCollection elements;
|
|
|
|
readonly attribute boolean willValidate;
|
|
[SameObject] readonly attribute ValidityState validity;
|
|
readonly attribute DOMString validationMessage;
|
|
boolean checkValidity();
|
|
boolean reportValidity();
|
|
void setCustomValidity(DOMString error);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLLegendElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
readonly attribute HTMLFormElement? form;
|
|
};
|
|
|
|
enum SelectionMode {
|
|
"select",
|
|
"start",
|
|
"end",
|
|
"preserve" // default
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface ValidityState {
|
|
readonly attribute boolean valueMissing;
|
|
readonly attribute boolean typeMismatch;
|
|
readonly attribute boolean patternMismatch;
|
|
readonly attribute boolean tooLong;
|
|
readonly attribute boolean tooShort;
|
|
readonly attribute boolean rangeUnderflow;
|
|
readonly attribute boolean rangeOverflow;
|
|
readonly attribute boolean stepMismatch;
|
|
readonly attribute boolean badInput;
|
|
readonly attribute boolean customError;
|
|
readonly attribute boolean valid;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface SubmitEvent : Event {
|
|
constructor(DOMString type, optional SubmitEventInit eventInitDict = {});
|
|
|
|
readonly attribute HTMLElement? submitter;
|
|
};
|
|
|
|
dictionary SubmitEventInit : EventInit {
|
|
HTMLElement? submitter = null;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface FormDataEvent : Event {
|
|
constructor(DOMString type, FormDataEventInit eventInitDict);
|
|
|
|
readonly attribute FormData formData;
|
|
};
|
|
|
|
dictionary FormDataEventInit : EventInit {
|
|
required FormData formData;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLDetailsElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute boolean open;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLDialogElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute boolean open;
|
|
attribute DOMString returnValue;
|
|
[CEReactions] void show();
|
|
[CEReactions] void showModal();
|
|
[CEReactions] void close(optional DOMString returnValue);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLScriptElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute USVString src;
|
|
[CEReactions] attribute DOMString type;
|
|
[CEReactions] attribute boolean noModule;
|
|
[CEReactions] attribute boolean async;
|
|
[CEReactions] attribute boolean defer;
|
|
[CEReactions] attribute DOMString? crossOrigin;
|
|
[CEReactions] attribute DOMString text;
|
|
[CEReactions] attribute DOMString integrity;
|
|
[CEReactions] attribute DOMString referrerPolicy;
|
|
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLTemplateElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
readonly attribute DocumentFragment content;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLSlotElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString name;
|
|
sequence<Node> assignedNodes(optional AssignedNodesOptions options = {});
|
|
sequence<Element> assignedElements(optional AssignedNodesOptions options = {});
|
|
};
|
|
|
|
dictionary AssignedNodesOptions {
|
|
boolean flatten = false;
|
|
};
|
|
|
|
typedef (CanvasRenderingContext2D or ImageBitmapRenderingContext or WebGLRenderingContext or WebGL2RenderingContext) RenderingContext;
|
|
|
|
[Exposed=Window]
|
|
interface HTMLCanvasElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute unsigned long width;
|
|
[CEReactions] attribute unsigned long height;
|
|
|
|
RenderingContext? getContext(DOMString contextId, optional any options = null);
|
|
|
|
USVString toDataURL(optional DOMString type = "image/png", optional any quality);
|
|
void toBlob(BlobCallback _callback, optional DOMString type = "image/png", optional any quality);
|
|
OffscreenCanvas transferControlToOffscreen();
|
|
};
|
|
|
|
callback BlobCallback = void (Blob? blob);
|
|
|
|
typedef (HTMLImageElement or
|
|
SVGImageElement) HTMLOrSVGImageElement;
|
|
|
|
typedef (HTMLOrSVGImageElement or
|
|
HTMLVideoElement or
|
|
HTMLCanvasElement or
|
|
ImageBitmap or
|
|
OffscreenCanvas) CanvasImageSource;
|
|
|
|
enum CanvasFillRule { "nonzero", "evenodd" };
|
|
|
|
dictionary CanvasRenderingContext2DSettings {
|
|
boolean alpha = true;
|
|
boolean desynchronized = false;
|
|
};
|
|
|
|
enum ImageSmoothingQuality { "low", "medium", "high" };
|
|
|
|
[Exposed=Window]
|
|
interface CanvasRenderingContext2D {
|
|
// back-reference to the canvas
|
|
readonly attribute HTMLCanvasElement canvas;
|
|
|
|
CanvasRenderingContext2DSettings getContextAttributes();
|
|
};
|
|
CanvasRenderingContext2D includes CanvasState;
|
|
CanvasRenderingContext2D includes CanvasTransform;
|
|
CanvasRenderingContext2D includes CanvasCompositing;
|
|
CanvasRenderingContext2D includes CanvasImageSmoothing;
|
|
CanvasRenderingContext2D includes CanvasFillStrokeStyles;
|
|
CanvasRenderingContext2D includes CanvasShadowStyles;
|
|
CanvasRenderingContext2D includes CanvasFilters;
|
|
CanvasRenderingContext2D includes CanvasRect;
|
|
CanvasRenderingContext2D includes CanvasDrawPath;
|
|
CanvasRenderingContext2D includes CanvasUserInterface;
|
|
CanvasRenderingContext2D includes CanvasText;
|
|
CanvasRenderingContext2D includes CanvasDrawImage;
|
|
CanvasRenderingContext2D includes CanvasImageData;
|
|
CanvasRenderingContext2D includes CanvasPathDrawingStyles;
|
|
CanvasRenderingContext2D includes CanvasTextDrawingStyles;
|
|
CanvasRenderingContext2D includes CanvasPath;
|
|
|
|
interface mixin CanvasState {
|
|
// state
|
|
void save(); // push state on state stack
|
|
void restore(); // pop state stack and restore state
|
|
};
|
|
|
|
interface mixin CanvasTransform {
|
|
// transformations (default transform is the identity matrix)
|
|
void scale(unrestricted double x, unrestricted double y);
|
|
void rotate(unrestricted double angle);
|
|
void translate(unrestricted double x, unrestricted double y);
|
|
void transform(unrestricted double a, unrestricted double b, unrestricted double c, unrestricted double d, unrestricted double e, unrestricted double f);
|
|
|
|
[NewObject] DOMMatrix getTransform();
|
|
void setTransform(unrestricted double a, unrestricted double b, unrestricted double c, unrestricted double d, unrestricted double e, unrestricted double f);
|
|
void setTransform(optional DOMMatrix2DInit transform = {});
|
|
void resetTransform();
|
|
|
|
};
|
|
|
|
interface mixin CanvasCompositing {
|
|
// compositing
|
|
attribute unrestricted double globalAlpha; // (default 1.0)
|
|
attribute DOMString globalCompositeOperation; // (default source-over)
|
|
};
|
|
|
|
interface mixin CanvasImageSmoothing {
|
|
// image smoothing
|
|
attribute boolean imageSmoothingEnabled; // (default true)
|
|
attribute ImageSmoothingQuality imageSmoothingQuality; // (default low)
|
|
|
|
};
|
|
|
|
interface mixin CanvasFillStrokeStyles {
|
|
// colors and styles (see also the CanvasPathDrawingStyles and CanvasTextDrawingStyles interfaces)
|
|
attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (default black)
|
|
attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (default black)
|
|
CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1);
|
|
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
|
|
CanvasPattern? createPattern(CanvasImageSource image, [LegacyNullToEmptyString] DOMString repetition);
|
|
|
|
};
|
|
|
|
interface mixin CanvasShadowStyles {
|
|
// shadows
|
|
attribute unrestricted double shadowOffsetX; // (default 0)
|
|
attribute unrestricted double shadowOffsetY; // (default 0)
|
|
attribute unrestricted double shadowBlur; // (default 0)
|
|
attribute DOMString shadowColor; // (default transparent black)
|
|
};
|
|
|
|
interface mixin CanvasFilters {
|
|
// filters
|
|
attribute DOMString filter; // (default "none")
|
|
};
|
|
|
|
interface mixin CanvasRect {
|
|
// rects
|
|
void clearRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
|
void fillRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
|
void strokeRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
|
};
|
|
|
|
interface mixin CanvasDrawPath {
|
|
// path API (see also CanvasPath)
|
|
void beginPath();
|
|
void fill(optional CanvasFillRule fillRule = "nonzero");
|
|
void fill(Path2D path, optional CanvasFillRule fillRule = "nonzero");
|
|
void stroke();
|
|
void stroke(Path2D path);
|
|
void clip(optional CanvasFillRule fillRule = "nonzero");
|
|
void clip(Path2D path, optional CanvasFillRule fillRule = "nonzero");
|
|
boolean isPointInPath(unrestricted double x, unrestricted double y, optional CanvasFillRule fillRule = "nonzero");
|
|
boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y, optional CanvasFillRule fillRule = "nonzero");
|
|
boolean isPointInStroke(unrestricted double x, unrestricted double y);
|
|
boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
|
|
};
|
|
|
|
interface mixin CanvasUserInterface {
|
|
void drawFocusIfNeeded(Element element);
|
|
void drawFocusIfNeeded(Path2D path, Element element);
|
|
void scrollPathIntoView();
|
|
void scrollPathIntoView(Path2D path);
|
|
};
|
|
|
|
interface mixin CanvasText {
|
|
// text (see also the CanvasPathDrawingStyles and CanvasTextDrawingStyles interfaces)
|
|
void fillText(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
|
|
void strokeText(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
|
|
TextMetrics measureText(DOMString text);
|
|
};
|
|
|
|
interface mixin CanvasDrawImage {
|
|
// drawing images
|
|
void drawImage(CanvasImageSource image, unrestricted double dx, unrestricted double dy);
|
|
void drawImage(CanvasImageSource image, unrestricted double dx, unrestricted double dy, unrestricted double dw, unrestricted double dh);
|
|
void drawImage(CanvasImageSource image, unrestricted double sx, unrestricted double sy, unrestricted double sw, unrestricted double sh, unrestricted double dx, unrestricted double dy, unrestricted double dw, unrestricted double dh);
|
|
};
|
|
|
|
interface mixin CanvasImageData {
|
|
// pixel manipulation
|
|
ImageData createImageData(long sw, long sh);
|
|
ImageData createImageData(ImageData imagedata);
|
|
ImageData getImageData(long sx, long sy, long sw, long sh);
|
|
void putImageData(ImageData imagedata, long dx, long dy);
|
|
void putImageData(ImageData imagedata, long dx, long dy, long dirtyX, long dirtyY, long dirtyWidth, long dirtyHeight);
|
|
};
|
|
|
|
enum CanvasLineCap { "butt", "round", "square" };
|
|
enum CanvasLineJoin { "round", "bevel", "miter" };
|
|
enum CanvasTextAlign { "start", "end", "left", "right", "center" };
|
|
enum CanvasTextBaseline { "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" };
|
|
enum CanvasDirection { "ltr", "rtl", "inherit" };
|
|
|
|
interface mixin CanvasPathDrawingStyles {
|
|
// line caps/joins
|
|
attribute unrestricted double lineWidth; // (default 1)
|
|
attribute CanvasLineCap lineCap; // (default "butt")
|
|
attribute CanvasLineJoin lineJoin; // (default "miter")
|
|
attribute unrestricted double miterLimit; // (default 10)
|
|
|
|
// dashed lines
|
|
void setLineDash(sequence<unrestricted double> segments); // default empty
|
|
sequence<unrestricted double> getLineDash();
|
|
attribute unrestricted double lineDashOffset;
|
|
};
|
|
|
|
interface mixin CanvasTextDrawingStyles {
|
|
// text
|
|
attribute DOMString font; // (default 10px sans-serif)
|
|
attribute CanvasTextAlign textAlign; // (default: "start")
|
|
attribute CanvasTextBaseline textBaseline; // (default: "alphabetic")
|
|
attribute CanvasDirection direction; // (default: "inherit")
|
|
};
|
|
|
|
interface mixin CanvasPath {
|
|
// shared path API methods
|
|
void closePath();
|
|
void moveTo(unrestricted double x, unrestricted double y);
|
|
void lineTo(unrestricted double x, unrestricted double y);
|
|
void quadraticCurveTo(unrestricted double cpx, unrestricted double cpy, unrestricted double x, unrestricted double y);
|
|
void bezierCurveTo(unrestricted double cp1x, unrestricted double cp1y, unrestricted double cp2x, unrestricted double cp2y, unrestricted double x, unrestricted double y);
|
|
void arcTo(unrestricted double x1, unrestricted double y1, unrestricted double x2, unrestricted double y2, unrestricted double radius);
|
|
void rect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
|
void arc(unrestricted double x, unrestricted double y, unrestricted double radius, unrestricted double startAngle, unrestricted double endAngle, optional boolean anticlockwise = false);
|
|
void ellipse(unrestricted double x, unrestricted double y, unrestricted double radiusX, unrestricted double radiusY, unrestricted double rotation, unrestricted double startAngle, unrestricted double endAngle, optional boolean anticlockwise = false);
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface CanvasGradient {
|
|
// opaque object
|
|
void addColorStop(double offset, DOMString color);
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface CanvasPattern {
|
|
// opaque object
|
|
void setTransform(optional DOMMatrix2DInit transform = {});
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface TextMetrics {
|
|
// x-direction
|
|
readonly attribute double width; // advance width
|
|
readonly attribute double actualBoundingBoxLeft;
|
|
readonly attribute double actualBoundingBoxRight;
|
|
|
|
// y-direction
|
|
readonly attribute double fontBoundingBoxAscent;
|
|
readonly attribute double fontBoundingBoxDescent;
|
|
readonly attribute double actualBoundingBoxAscent;
|
|
readonly attribute double actualBoundingBoxDescent;
|
|
readonly attribute double emHeightAscent;
|
|
readonly attribute double emHeightDescent;
|
|
readonly attribute double hangingBaseline;
|
|
readonly attribute double alphabeticBaseline;
|
|
readonly attribute double ideographicBaseline;
|
|
};
|
|
|
|
[Exposed=(Window,Worker),
|
|
Serializable]
|
|
interface ImageData {
|
|
constructor(unsigned long sw, unsigned long sh);
|
|
constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh);
|
|
|
|
readonly attribute unsigned long width;
|
|
readonly attribute unsigned long height;
|
|
readonly attribute Uint8ClampedArray data;
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface Path2D {
|
|
constructor(optional (Path2D or DOMString) path);
|
|
|
|
void addPath(Path2D path, optional DOMMatrix2DInit transform = {});
|
|
};
|
|
Path2D includes CanvasPath;
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface ImageBitmapRenderingContext {
|
|
readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
|
|
void transferFromImageBitmap(ImageBitmap? bitmap);
|
|
};
|
|
|
|
dictionary ImageBitmapRenderingContextSettings {
|
|
boolean alpha = true;
|
|
};
|
|
|
|
typedef (OffscreenCanvasRenderingContext2D or ImageBitmapRenderingContext or WebGLRenderingContext or WebGL2RenderingContext) OffscreenRenderingContext;
|
|
|
|
dictionary ImageEncodeOptions {
|
|
DOMString type = "image/png";
|
|
unrestricted double quality;
|
|
};
|
|
|
|
enum OffscreenRenderingContextId { "2d", "bitmaprenderer", "webgl", "webgl2" };
|
|
|
|
[Exposed=(Window,Worker), Transferable]
|
|
interface OffscreenCanvas : EventTarget {
|
|
constructor([EnforceRange] unsigned long long width, [EnforceRange] unsigned long long height);
|
|
|
|
attribute [EnforceRange] unsigned long long width;
|
|
attribute [EnforceRange] unsigned long long height;
|
|
|
|
OffscreenRenderingContext? getContext(OffscreenRenderingContextId contextId, optional any options = null);
|
|
ImageBitmap transferToImageBitmap();
|
|
Promise<Blob> convertToBlob(optional ImageEncodeOptions options = {});
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface OffscreenCanvasRenderingContext2D {
|
|
void commit();
|
|
readonly attribute OffscreenCanvas canvas;
|
|
};
|
|
|
|
OffscreenCanvasRenderingContext2D includes CanvasState;
|
|
OffscreenCanvasRenderingContext2D includes CanvasTransform;
|
|
OffscreenCanvasRenderingContext2D includes CanvasCompositing;
|
|
OffscreenCanvasRenderingContext2D includes CanvasImageSmoothing;
|
|
OffscreenCanvasRenderingContext2D includes CanvasFillStrokeStyles;
|
|
OffscreenCanvasRenderingContext2D includes CanvasShadowStyles;
|
|
OffscreenCanvasRenderingContext2D includes CanvasFilters;
|
|
OffscreenCanvasRenderingContext2D includes CanvasRect;
|
|
OffscreenCanvasRenderingContext2D includes CanvasDrawPath;
|
|
OffscreenCanvasRenderingContext2D includes CanvasText;
|
|
OffscreenCanvasRenderingContext2D includes CanvasDrawImage;
|
|
OffscreenCanvasRenderingContext2D includes CanvasImageData;
|
|
OffscreenCanvasRenderingContext2D includes CanvasPathDrawingStyles;
|
|
OffscreenCanvasRenderingContext2D includes CanvasTextDrawingStyles;
|
|
OffscreenCanvasRenderingContext2D includes CanvasPath;
|
|
|
|
[Exposed=Window]
|
|
interface CustomElementRegistry {
|
|
[CEReactions] void define(DOMString name, CustomElementConstructor constructor, optional ElementDefinitionOptions options = {});
|
|
any get(DOMString name);
|
|
Promise<void> whenDefined(DOMString name);
|
|
[CEReactions] void upgrade(Node root);
|
|
};
|
|
|
|
callback CustomElementConstructor = HTMLElement ();
|
|
|
|
dictionary ElementDefinitionOptions {
|
|
DOMString extends;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface ElementInternals {
|
|
// Form-associated custom elements
|
|
|
|
void setFormValue((File or USVString or FormData)? value,
|
|
optional (File or USVString or FormData)? state);
|
|
|
|
readonly attribute HTMLFormElement? form;
|
|
|
|
void setValidity(ValidityStateFlags flags,
|
|
optional DOMString message,
|
|
optional HTMLElement anchor);
|
|
readonly attribute boolean willValidate;
|
|
readonly attribute ValidityState validity;
|
|
readonly attribute DOMString validationMessage;
|
|
boolean checkValidity();
|
|
boolean reportValidity();
|
|
|
|
readonly attribute NodeList labels;
|
|
};
|
|
|
|
dictionary ValidityStateFlags {
|
|
boolean valueMissing = false;
|
|
boolean typeMismatch = false;
|
|
boolean patternMismatch = false;
|
|
boolean tooLong = false;
|
|
boolean tooShort = false;
|
|
boolean rangeUnderflow = false;
|
|
boolean rangeOverflow = false;
|
|
boolean stepMismatch = false;
|
|
boolean badInput = false;
|
|
boolean customError = false;
|
|
};
|
|
|
|
dictionary FocusOptions {
|
|
boolean preventScroll = false;
|
|
};
|
|
|
|
interface mixin ElementContentEditable {
|
|
[CEReactions] attribute DOMString contentEditable;
|
|
[CEReactions] attribute DOMString enterKeyHint;
|
|
readonly attribute boolean isContentEditable;
|
|
[CEReactions] attribute DOMString inputMode;
|
|
};
|
|
|
|
[Exposed=Window,
|
|
Constructor]
|
|
interface DataTransfer {
|
|
attribute DOMString dropEffect;
|
|
attribute DOMString effectAllowed;
|
|
|
|
[SameObject] readonly attribute DataTransferItemList items;
|
|
|
|
void setDragImage(Element image, long x, long y);
|
|
|
|
/* old interface */
|
|
readonly attribute FrozenArray<DOMString> types;
|
|
DOMString getData(DOMString format);
|
|
void setData(DOMString format, DOMString data);
|
|
void clearData(optional DOMString format);
|
|
[SameObject] readonly attribute FileList files;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface DataTransferItemList {
|
|
readonly attribute unsigned long length;
|
|
getter DataTransferItem (unsigned long index);
|
|
DataTransferItem? add(DOMString data, DOMString type);
|
|
DataTransferItem? add(File data);
|
|
void remove(unsigned long index);
|
|
void clear();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface DataTransferItem {
|
|
readonly attribute DOMString kind;
|
|
readonly attribute DOMString type;
|
|
void getAsString(FunctionStringCallback? _callback);
|
|
File? getAsFile();
|
|
};
|
|
|
|
callback FunctionStringCallback = void (DOMString data);
|
|
|
|
[Exposed=Window,
|
|
Constructor(DOMString type, optional DragEventInit eventInitDict = {})]
|
|
interface DragEvent : MouseEvent {
|
|
readonly attribute DataTransfer? dataTransfer;
|
|
};
|
|
|
|
dictionary DragEventInit : MouseEventInit {
|
|
DataTransfer? dataTransfer = null;
|
|
};
|
|
|
|
[Global=Window,
|
|
Exposed=Window,
|
|
LegacyUnenumerableNamedProperties]
|
|
interface Window : EventTarget {
|
|
// the current browsing context
|
|
[LegacyUnforgeable] readonly attribute WindowProxy window;
|
|
[Replaceable] readonly attribute WindowProxy self;
|
|
[LegacyUnforgeable] readonly attribute Document document;
|
|
attribute DOMString name;
|
|
[PutForwards=href, LegacyUnforgeable] readonly attribute Location location;
|
|
readonly attribute History history;
|
|
readonly attribute CustomElementRegistry customElements;
|
|
[Replaceable] readonly attribute BarProp locationbar;
|
|
[Replaceable] readonly attribute BarProp menubar;
|
|
[Replaceable] readonly attribute BarProp personalbar;
|
|
[Replaceable] readonly attribute BarProp scrollbars;
|
|
[Replaceable] readonly attribute BarProp statusbar;
|
|
[Replaceable] readonly attribute BarProp toolbar;
|
|
attribute DOMString status;
|
|
void close();
|
|
readonly attribute boolean closed;
|
|
void stop();
|
|
void focus();
|
|
void blur();
|
|
|
|
// other browsing contexts
|
|
[Replaceable] readonly attribute WindowProxy frames;
|
|
[Replaceable] readonly attribute unsigned long length;
|
|
[LegacyUnforgeable] readonly attribute WindowProxy? top;
|
|
attribute any opener;
|
|
[Replaceable] readonly attribute WindowProxy? parent;
|
|
readonly attribute Element? frameElement;
|
|
WindowProxy? open(optional USVString url = "", optional DOMString target = "_blank", optional [LegacyNullToEmptyString] DOMString features = "");
|
|
getter object (DOMString name);
|
|
// Since this is the global object, the IDL named getter adds a NamedPropertiesObject exotic
|
|
// object on the prototype chain. Indeed, this does not make the global object an exotic object.
|
|
// Indexed access is taken care of by the WindowProxy exotic object.
|
|
|
|
// the user agent
|
|
readonly attribute Navigator navigator;
|
|
[SecureContext] readonly attribute ApplicationCache applicationCache;
|
|
|
|
// user prompts
|
|
void alert();
|
|
void alert(DOMString message);
|
|
boolean confirm(optional DOMString message = "");
|
|
DOMString? prompt(optional DOMString message = "", optional DOMString default = "");
|
|
void print();
|
|
|
|
void postMessage(any message, USVString targetOrigin, optional sequence<object> transfer = []);
|
|
void postMessage(any message, optional WindowPostMessageOptions options = {});
|
|
};
|
|
Window includes GlobalEventHandlers;
|
|
Window includes WindowEventHandlers;
|
|
|
|
dictionary WindowPostMessageOptions : PostMessageOptions {
|
|
USVString targetOrigin = "/";
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface BarProp {
|
|
readonly attribute boolean visible;
|
|
};
|
|
|
|
enum ScrollRestoration { "auto", "manual" };
|
|
|
|
[Exposed=Window]
|
|
interface History {
|
|
readonly attribute unsigned long length;
|
|
attribute ScrollRestoration scrollRestoration;
|
|
readonly attribute any state;
|
|
void go(optional long delta = 0);
|
|
void back();
|
|
void forward();
|
|
void pushState(any data, DOMString title, optional USVString? url = null);
|
|
void replaceState(any data, DOMString title, optional USVString? url = null);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface Location { // but see also additional creation steps and overridden internal methods
|
|
[LegacyUnforgeable] stringifier attribute USVString href;
|
|
[LegacyUnforgeable] readonly attribute USVString origin;
|
|
[LegacyUnforgeable] attribute USVString protocol;
|
|
[LegacyUnforgeable] attribute USVString host;
|
|
[LegacyUnforgeable] attribute USVString hostname;
|
|
[LegacyUnforgeable] attribute USVString port;
|
|
[LegacyUnforgeable] attribute USVString pathname;
|
|
[LegacyUnforgeable] attribute USVString search;
|
|
[LegacyUnforgeable] attribute USVString hash;
|
|
|
|
[LegacyUnforgeable] void assign(USVString url);
|
|
[LegacyUnforgeable] void replace(USVString url);
|
|
[LegacyUnforgeable] void reload();
|
|
|
|
[LegacyUnforgeable, SameObject] readonly attribute DOMStringList ancestorOrigins;
|
|
};
|
|
|
|
[Exposed=Window,
|
|
Constructor(DOMString type, optional PopStateEventInit eventInitDict = {})]
|
|
interface PopStateEvent : Event {
|
|
readonly attribute any state;
|
|
};
|
|
|
|
dictionary PopStateEventInit : EventInit {
|
|
any state = null;
|
|
};
|
|
|
|
[Exposed=Window,
|
|
Constructor(DOMString type, optional HashChangeEventInit eventInitDict = {})]
|
|
interface HashChangeEvent : Event {
|
|
readonly attribute USVString oldURL;
|
|
readonly attribute USVString newURL;
|
|
};
|
|
|
|
dictionary HashChangeEventInit : EventInit {
|
|
USVString oldURL = "";
|
|
USVString newURL = "";
|
|
};
|
|
|
|
[Exposed=Window,
|
|
Constructor(DOMString type, optional PageTransitionEventInit eventInitDict = {})]
|
|
interface PageTransitionEvent : Event {
|
|
readonly attribute boolean persisted;
|
|
};
|
|
|
|
dictionary PageTransitionEventInit : EventInit {
|
|
boolean persisted = false;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface BeforeUnloadEvent : Event {
|
|
attribute DOMString returnValue;
|
|
};
|
|
|
|
[SecureContext,
|
|
Exposed=Window]
|
|
interface ApplicationCache : EventTarget {
|
|
|
|
// update status
|
|
const unsigned short UNCACHED = 0;
|
|
const unsigned short IDLE = 1;
|
|
const unsigned short CHECKING = 2;
|
|
const unsigned short DOWNLOADING = 3;
|
|
const unsigned short UPDATEREADY = 4;
|
|
const unsigned short OBSOLETE = 5;
|
|
readonly attribute unsigned short status;
|
|
|
|
// updates
|
|
void update();
|
|
void abort();
|
|
void swapCache();
|
|
|
|
// events
|
|
attribute EventHandler onchecking;
|
|
attribute EventHandler onerror;
|
|
attribute EventHandler onnoupdate;
|
|
attribute EventHandler ondownloading;
|
|
attribute EventHandler onprogress;
|
|
attribute EventHandler onupdateready;
|
|
attribute EventHandler oncached;
|
|
attribute EventHandler onobsolete;
|
|
};
|
|
|
|
interface mixin NavigatorOnLine {
|
|
readonly attribute boolean onLine;
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface ErrorEvent : Event {
|
|
constructor(DOMString type, optional ErrorEventInit eventInitDict = {});
|
|
|
|
readonly attribute DOMString message;
|
|
readonly attribute USVString filename;
|
|
readonly attribute unsigned long lineno;
|
|
readonly attribute unsigned long colno;
|
|
readonly attribute any error;
|
|
};
|
|
|
|
dictionary ErrorEventInit : EventInit {
|
|
DOMString message = "";
|
|
USVString filename = "";
|
|
unsigned long lineno = 0;
|
|
unsigned long colno = 0;
|
|
any error = null;
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface PromiseRejectionEvent : Event {
|
|
constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
|
|
|
|
readonly attribute Promise<any> promise;
|
|
readonly attribute any reason;
|
|
};
|
|
|
|
dictionary PromiseRejectionEventInit : EventInit {
|
|
required Promise<any> promise;
|
|
any reason;
|
|
};
|
|
|
|
[LegacyTreatNonObjectAsNull]
|
|
callback EventHandlerNonNull = any (Event event);
|
|
typedef EventHandlerNonNull? EventHandler;
|
|
|
|
[LegacyTreatNonObjectAsNull]
|
|
callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional DOMString source, optional unsigned long lineno, optional unsigned long colno, optional any error);
|
|
typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
|
|
|
|
[LegacyTreatNonObjectAsNull]
|
|
callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
|
|
typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
|
|
|
|
interface mixin GlobalEventHandlers {
|
|
attribute EventHandler onabort;
|
|
attribute EventHandler onauxclick;
|
|
attribute EventHandler onblur;
|
|
attribute EventHandler oncancel;
|
|
attribute EventHandler oncanplay;
|
|
attribute EventHandler oncanplaythrough;
|
|
attribute EventHandler onchange;
|
|
attribute EventHandler onclick;
|
|
attribute EventHandler onclose;
|
|
attribute EventHandler oncontextmenu;
|
|
attribute EventHandler oncuechange;
|
|
attribute EventHandler ondblclick;
|
|
attribute EventHandler ondrag;
|
|
attribute EventHandler ondragend;
|
|
attribute EventHandler ondragenter;
|
|
attribute EventHandler ondragexit;
|
|
attribute EventHandler ondragleave;
|
|
attribute EventHandler ondragover;
|
|
attribute EventHandler ondragstart;
|
|
attribute EventHandler ondrop;
|
|
attribute EventHandler ondurationchange;
|
|
attribute EventHandler onemptied;
|
|
attribute EventHandler onended;
|
|
attribute OnErrorEventHandler onerror;
|
|
attribute EventHandler onfocus;
|
|
attribute EventHandler onformdata;
|
|
attribute EventHandler oninput;
|
|
attribute EventHandler oninvalid;
|
|
attribute EventHandler onkeydown;
|
|
attribute EventHandler onkeypress;
|
|
attribute EventHandler onkeyup;
|
|
attribute EventHandler onload;
|
|
attribute EventHandler onloadeddata;
|
|
attribute EventHandler onloadedmetadata;
|
|
attribute EventHandler onloadstart;
|
|
attribute EventHandler onmousedown;
|
|
[LegacyLenientThis] attribute EventHandler onmouseenter;
|
|
[LegacyLenientThis] attribute EventHandler onmouseleave;
|
|
attribute EventHandler onmousemove;
|
|
attribute EventHandler onmouseout;
|
|
attribute EventHandler onmouseover;
|
|
attribute EventHandler onmouseup;
|
|
attribute EventHandler onpause;
|
|
attribute EventHandler onplay;
|
|
attribute EventHandler onplaying;
|
|
attribute EventHandler onprogress;
|
|
attribute EventHandler onratechange;
|
|
attribute EventHandler onreset;
|
|
attribute EventHandler onresize;
|
|
attribute EventHandler onscroll;
|
|
attribute EventHandler onsecuritypolicyviolation;
|
|
attribute EventHandler onseeked;
|
|
attribute EventHandler onseeking;
|
|
attribute EventHandler onselect;
|
|
attribute EventHandler onslotchange;
|
|
attribute EventHandler onstalled;
|
|
attribute EventHandler onsubmit;
|
|
attribute EventHandler onsuspend;
|
|
attribute EventHandler ontimeupdate;
|
|
attribute EventHandler ontoggle;
|
|
attribute EventHandler onvolumechange;
|
|
attribute EventHandler onwaiting;
|
|
attribute EventHandler onwebkitanimationend;
|
|
attribute EventHandler onwebkitanimationiteration;
|
|
attribute EventHandler onwebkitanimationstart;
|
|
attribute EventHandler onwebkittransitionend;
|
|
attribute EventHandler onwheel;
|
|
};
|
|
|
|
interface mixin WindowEventHandlers {
|
|
attribute EventHandler onafterprint;
|
|
attribute EventHandler onbeforeprint;
|
|
attribute OnBeforeUnloadEventHandler onbeforeunload;
|
|
attribute EventHandler onhashchange;
|
|
attribute EventHandler onlanguagechange;
|
|
attribute EventHandler onmessage;
|
|
attribute EventHandler onmessageerror;
|
|
attribute EventHandler onoffline;
|
|
attribute EventHandler ononline;
|
|
attribute EventHandler onpagehide;
|
|
attribute EventHandler onpageshow;
|
|
attribute EventHandler onpopstate;
|
|
attribute EventHandler onrejectionhandled;
|
|
attribute EventHandler onstorage;
|
|
attribute EventHandler onunhandledrejection;
|
|
attribute EventHandler onunload;
|
|
};
|
|
|
|
interface mixin DocumentAndElementEventHandlers {
|
|
attribute EventHandler oncopy;
|
|
attribute EventHandler oncut;
|
|
attribute EventHandler onpaste;
|
|
};
|
|
|
|
typedef (DOMString or Function) TimerHandler;
|
|
|
|
interface mixin WindowOrWorkerGlobalScope {
|
|
[Replaceable] readonly attribute USVString origin;
|
|
|
|
// base64 utility methods
|
|
DOMString btoa(DOMString data);
|
|
ByteString atob(DOMString data);
|
|
|
|
// timers
|
|
long setTimeout(TimerHandler handler, optional long timeout = 0, any... arguments);
|
|
void clearTimeout(optional long handle = 0);
|
|
long setInterval(TimerHandler handler, optional long timeout = 0, any... arguments);
|
|
void clearInterval(optional long handle = 0);
|
|
|
|
// microtask queuing
|
|
void queueMicrotask(VoidFunction callback);
|
|
|
|
// ImageBitmap
|
|
Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, optional ImageBitmapOptions options = {});
|
|
Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, long sx, long sy, long sw, long sh, optional ImageBitmapOptions options = {});
|
|
};
|
|
Window includes WindowOrWorkerGlobalScope;
|
|
WorkerGlobalScope includes WindowOrWorkerGlobalScope;
|
|
|
|
[Exposed=Window]
|
|
interface DOMParser {
|
|
constructor();
|
|
|
|
[NewObject] Document parseFromString(DOMString string, DOMParserSupportedType type);
|
|
};
|
|
|
|
enum DOMParserSupportedType {
|
|
"text/html",
|
|
"text/xml",
|
|
"application/xml",
|
|
"application/xhtml+xml",
|
|
"image/svg+xml"
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface Navigator {
|
|
// objects implementing this interface also implement the interfaces given below
|
|
};
|
|
Navigator includes NavigatorID;
|
|
Navigator includes NavigatorLanguage;
|
|
Navigator includes NavigatorOnLine;
|
|
Navigator includes NavigatorContentUtils;
|
|
Navigator includes NavigatorCookies;
|
|
Navigator includes NavigatorPlugins;
|
|
Navigator includes NavigatorConcurrentHardware;
|
|
|
|
interface mixin NavigatorID {
|
|
readonly attribute DOMString appCodeName; // constant "Mozilla"
|
|
readonly attribute DOMString appName; // constant "Netscape"
|
|
readonly attribute DOMString appVersion;
|
|
readonly attribute DOMString platform;
|
|
readonly attribute DOMString product; // constant "Gecko"
|
|
[Exposed=Window] readonly attribute DOMString productSub;
|
|
readonly attribute DOMString userAgent;
|
|
[Exposed=Window] readonly attribute DOMString vendor;
|
|
[Exposed=Window] readonly attribute DOMString vendorSub; // constant ""
|
|
};
|
|
|
|
partial interface mixin NavigatorID {
|
|
[Exposed=Window] boolean taintEnabled(); // constant false
|
|
[Exposed=Window] readonly attribute DOMString oscpu;
|
|
};
|
|
|
|
interface mixin NavigatorLanguage {
|
|
readonly attribute DOMString language;
|
|
readonly attribute FrozenArray<DOMString> languages;
|
|
};
|
|
|
|
interface mixin NavigatorContentUtils {
|
|
[SecureContext] void registerProtocolHandler(DOMString scheme, USVString url);
|
|
[SecureContext] void unregisterProtocolHandler(DOMString scheme, USVString url);
|
|
};
|
|
|
|
interface mixin NavigatorCookies {
|
|
readonly attribute boolean cookieEnabled;
|
|
};
|
|
|
|
interface mixin NavigatorPlugins {
|
|
[SameObject] readonly attribute PluginArray plugins;
|
|
[SameObject] readonly attribute MimeTypeArray mimeTypes;
|
|
boolean javaEnabled();
|
|
};
|
|
|
|
[Exposed=Window,
|
|
LegacyUnenumerableNamedProperties]
|
|
interface PluginArray {
|
|
void refresh(optional boolean reload = false);
|
|
readonly attribute unsigned long length;
|
|
getter Plugin? item(unsigned long index);
|
|
getter Plugin? namedItem(DOMString name);
|
|
};
|
|
|
|
[Exposed=Window,
|
|
LegacyUnenumerableNamedProperties]
|
|
interface MimeTypeArray {
|
|
readonly attribute unsigned long length;
|
|
getter MimeType? item(unsigned long index);
|
|
getter MimeType? namedItem(DOMString name);
|
|
};
|
|
|
|
[Exposed=Window,
|
|
LegacyUnenumerableNamedProperties]
|
|
interface Plugin {
|
|
readonly attribute DOMString name;
|
|
readonly attribute DOMString description;
|
|
readonly attribute DOMString filename;
|
|
readonly attribute unsigned long length;
|
|
getter MimeType? item(unsigned long index);
|
|
getter MimeType? namedItem(DOMString name);
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface MimeType {
|
|
readonly attribute DOMString type;
|
|
readonly attribute DOMString description;
|
|
readonly attribute DOMString suffixes; // comma-separated
|
|
readonly attribute Plugin enabledPlugin;
|
|
};
|
|
|
|
[Exposed=(Window,Worker), Serializable, Transferable]
|
|
interface ImageBitmap {
|
|
readonly attribute unsigned long width;
|
|
readonly attribute unsigned long height;
|
|
void close();
|
|
};
|
|
|
|
typedef (CanvasImageSource or
|
|
Blob or
|
|
ImageData) ImageBitmapSource;
|
|
|
|
enum ImageOrientation { "none", "flipY" };
|
|
enum PremultiplyAlpha { "none", "premultiply", "default" };
|
|
enum ColorSpaceConversion { "none", "default" };
|
|
enum ResizeQuality { "pixelated", "low", "medium", "high" };
|
|
|
|
dictionary ImageBitmapOptions {
|
|
ImageOrientation imageOrientation = "none";
|
|
PremultiplyAlpha premultiplyAlpha = "default";
|
|
ColorSpaceConversion colorSpaceConversion = "default";
|
|
[EnforceRange] unsigned long resizeWidth;
|
|
[EnforceRange] unsigned long resizeHeight;
|
|
ResizeQuality resizeQuality = "low";
|
|
};
|
|
|
|
callback FrameRequestCallback = void (DOMHighResTimeStamp time);
|
|
|
|
interface mixin AnimationFrameProvider {
|
|
unsigned long requestAnimationFrame(FrameRequestCallback callback);
|
|
void cancelAnimationFrame(unsigned long handle);
|
|
};
|
|
Window includes AnimationFrameProvider;
|
|
DedicatedWorkerGlobalScope includes AnimationFrameProvider;
|
|
|
|
[Exposed=(Window,Worker,AudioWorklet)]
|
|
interface MessageEvent : Event {
|
|
constructor(DOMString type, optional MessageEventInit eventInitDict = {});
|
|
|
|
readonly attribute any data;
|
|
readonly attribute USVString origin;
|
|
readonly attribute DOMString lastEventId;
|
|
readonly attribute MessageEventSource? source;
|
|
readonly attribute FrozenArray<MessagePort> ports;
|
|
|
|
void initMessageEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any data = null, optional USVString origin = "", optional DOMString lastEventId = "", optional MessageEventSource? source = null, optional sequence<MessagePort> ports = []);
|
|
};
|
|
|
|
dictionary MessageEventInit : EventInit {
|
|
any data = null;
|
|
USVString origin = "";
|
|
DOMString lastEventId = "";
|
|
MessageEventSource? source = null;
|
|
sequence<MessagePort> ports = [];
|
|
};
|
|
|
|
typedef (WindowProxy or MessagePort or ServiceWorker) MessageEventSource;
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface EventSource : EventTarget {
|
|
constructor(USVString url, optional EventSourceInit eventSourceInitDict = {});
|
|
|
|
readonly attribute USVString url;
|
|
readonly attribute boolean withCredentials;
|
|
|
|
// ready state
|
|
const unsigned short CONNECTING = 0;
|
|
const unsigned short OPEN = 1;
|
|
const unsigned short CLOSED = 2;
|
|
readonly attribute unsigned short readyState;
|
|
|
|
// networking
|
|
attribute EventHandler onopen;
|
|
attribute EventHandler onmessage;
|
|
attribute EventHandler onerror;
|
|
void close();
|
|
};
|
|
|
|
dictionary EventSourceInit {
|
|
boolean withCredentials = false;
|
|
};
|
|
|
|
enum BinaryType { "blob", "arraybuffer" };
|
|
[Exposed=(Window,Worker)]
|
|
interface WebSocket : EventTarget {
|
|
constructor(USVString url, optional (DOMString or sequence<DOMString>) protocols = []);
|
|
|
|
readonly attribute USVString url;
|
|
|
|
// ready state
|
|
const unsigned short CONNECTING = 0;
|
|
const unsigned short OPEN = 1;
|
|
const unsigned short CLOSING = 2;
|
|
const unsigned short CLOSED = 3;
|
|
readonly attribute unsigned short readyState;
|
|
readonly attribute unsigned long long bufferedAmount;
|
|
|
|
// networking
|
|
attribute EventHandler onopen;
|
|
attribute EventHandler onerror;
|
|
attribute EventHandler onclose;
|
|
readonly attribute DOMString extensions;
|
|
readonly attribute DOMString protocol;
|
|
void close(optional [Clamp] unsigned short code, optional USVString reason);
|
|
|
|
// messaging
|
|
attribute EventHandler onmessage;
|
|
attribute BinaryType binaryType;
|
|
void send(USVString data);
|
|
void send(Blob data);
|
|
void send(ArrayBuffer data);
|
|
void send(ArrayBufferView data);
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface CloseEvent : Event {
|
|
constructor(DOMString type, optional CloseEventInit eventInitDict = {});
|
|
|
|
readonly attribute boolean wasClean;
|
|
readonly attribute unsigned short code;
|
|
readonly attribute USVString reason;
|
|
};
|
|
|
|
dictionary CloseEventInit : EventInit {
|
|
boolean wasClean = false;
|
|
unsigned short code = 0;
|
|
USVString reason = "";
|
|
};
|
|
|
|
[Constructor, Exposed=(Window,Worker)]
|
|
interface MessageChannel {
|
|
readonly attribute MessagePort port1;
|
|
readonly attribute MessagePort port2;
|
|
};
|
|
|
|
[Exposed=(Window,Worker,AudioWorklet), Transferable]
|
|
interface MessagePort : EventTarget {
|
|
void postMessage(any message, sequence<object> transfer);
|
|
void postMessage(any message, optional PostMessageOptions options = {});
|
|
void start();
|
|
void close();
|
|
|
|
// event handlers
|
|
attribute EventHandler onmessage;
|
|
attribute EventHandler onmessageerror;
|
|
};
|
|
|
|
dictionary PostMessageOptions {
|
|
sequence<object> transfer = [];
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface BroadcastChannel : EventTarget {
|
|
constructor(DOMString name);
|
|
|
|
readonly attribute DOMString name;
|
|
void postMessage(any message);
|
|
void close();
|
|
attribute EventHandler onmessage;
|
|
attribute EventHandler onmessageerror;
|
|
};
|
|
|
|
[Exposed=Worker]
|
|
interface WorkerGlobalScope : EventTarget {
|
|
readonly attribute WorkerGlobalScope self;
|
|
readonly attribute WorkerLocation location;
|
|
readonly attribute WorkerNavigator navigator;
|
|
void importScripts(USVString... urls);
|
|
|
|
attribute OnErrorEventHandler onerror;
|
|
attribute EventHandler onlanguagechange;
|
|
attribute EventHandler onoffline;
|
|
attribute EventHandler ononline;
|
|
attribute EventHandler onrejectionhandled;
|
|
attribute EventHandler onunhandledrejection;
|
|
};
|
|
|
|
[Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
|
|
interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
|
|
[Replaceable] readonly attribute DOMString name;
|
|
|
|
void postMessage(any message, sequence<object> transfer);
|
|
void postMessage(any message, optional PostMessageOptions options = {});
|
|
|
|
void close();
|
|
|
|
attribute EventHandler onmessage;
|
|
attribute EventHandler onmessageerror;
|
|
};
|
|
|
|
[Global=(Worker,SharedWorker),Exposed=SharedWorker]
|
|
interface SharedWorkerGlobalScope : WorkerGlobalScope {
|
|
[Replaceable] readonly attribute DOMString name;
|
|
|
|
void close();
|
|
|
|
attribute EventHandler onconnect;
|
|
};
|
|
|
|
interface mixin AbstractWorker {
|
|
attribute EventHandler onerror;
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface Worker : EventTarget {
|
|
constructor(USVString scriptURL, optional WorkerOptions options = {});
|
|
|
|
void terminate();
|
|
|
|
void postMessage(any message, sequence<object> transfer);
|
|
void postMessage(any message, optional PostMessageOptions options = {});
|
|
attribute EventHandler onmessage;
|
|
attribute EventHandler onmessageerror;
|
|
};
|
|
|
|
dictionary WorkerOptions {
|
|
WorkerType type = "classic";
|
|
RequestCredentials credentials = "same-origin"; // credentials is only used if type is "module"
|
|
DOMString name = "";
|
|
};
|
|
|
|
enum WorkerType { "classic", "module" };
|
|
|
|
Worker includes AbstractWorker;
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface SharedWorker : EventTarget {
|
|
constructor(USVString scriptURL, optional (DOMString or WorkerOptions) options = {});
|
|
|
|
readonly attribute MessagePort port;
|
|
};
|
|
SharedWorker includes AbstractWorker;
|
|
|
|
interface mixin NavigatorConcurrentHardware {
|
|
readonly attribute unsigned long long hardwareConcurrency;
|
|
};
|
|
|
|
[Exposed=Worker]
|
|
interface WorkerNavigator {};
|
|
WorkerNavigator includes NavigatorID;
|
|
WorkerNavigator includes NavigatorLanguage;
|
|
WorkerNavigator includes NavigatorOnLine;
|
|
WorkerNavigator includes NavigatorConcurrentHardware;
|
|
|
|
[Exposed=Worker]
|
|
interface WorkerLocation {
|
|
stringifier readonly attribute USVString href;
|
|
readonly attribute USVString origin;
|
|
readonly attribute USVString protocol;
|
|
readonly attribute USVString host;
|
|
readonly attribute USVString hostname;
|
|
readonly attribute USVString port;
|
|
readonly attribute USVString pathname;
|
|
readonly attribute USVString search;
|
|
readonly attribute USVString hash;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface Storage {
|
|
readonly attribute unsigned long length;
|
|
DOMString? key(unsigned long index);
|
|
getter DOMString? getItem(DOMString key);
|
|
setter void setItem(DOMString key, DOMString value);
|
|
deleter void removeItem(DOMString key);
|
|
void clear();
|
|
};
|
|
|
|
interface mixin WindowSessionStorage {
|
|
readonly attribute Storage sessionStorage;
|
|
};
|
|
Window includes WindowSessionStorage;
|
|
|
|
interface mixin WindowLocalStorage {
|
|
readonly attribute Storage localStorage;
|
|
};
|
|
Window includes WindowLocalStorage;
|
|
|
|
[Exposed=Window,
|
|
Constructor(DOMString type, optional StorageEventInit eventInitDict = {})]
|
|
interface StorageEvent : Event {
|
|
readonly attribute DOMString? key;
|
|
readonly attribute DOMString? oldValue;
|
|
readonly attribute DOMString? newValue;
|
|
readonly attribute USVString url;
|
|
readonly attribute Storage? storageArea;
|
|
|
|
void initStorageEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional DOMString? key = null, optional DOMString? oldValue = null, optional DOMString? newValue = null, optional USVString url = "", optional Storage? storageArea = null);
|
|
};
|
|
|
|
dictionary StorageEventInit : EventInit {
|
|
DOMString? key = null;
|
|
DOMString? oldValue = null;
|
|
DOMString? newValue = null;
|
|
USVString url = "";
|
|
Storage? storageArea = null;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLMarqueeElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString behavior;
|
|
[CEReactions] attribute DOMString bgColor;
|
|
[CEReactions] attribute DOMString direction;
|
|
[CEReactions] attribute DOMString height;
|
|
[CEReactions] attribute unsigned long hspace;
|
|
[CEReactions] attribute long loop;
|
|
[CEReactions] attribute unsigned long scrollAmount;
|
|
[CEReactions] attribute unsigned long scrollDelay;
|
|
[CEReactions] attribute boolean trueSpeed;
|
|
[CEReactions] attribute unsigned long vspace;
|
|
[CEReactions] attribute DOMString width;
|
|
|
|
attribute EventHandler onbounce;
|
|
attribute EventHandler onfinish;
|
|
attribute EventHandler onstart;
|
|
|
|
void start();
|
|
void stop();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLFrameSetElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString cols;
|
|
[CEReactions] attribute DOMString rows;
|
|
};
|
|
HTMLFrameSetElement includes WindowEventHandlers;
|
|
|
|
[Exposed=Window]
|
|
interface HTMLFrameElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute DOMString scrolling;
|
|
[CEReactions] attribute USVString src;
|
|
[CEReactions] attribute DOMString frameBorder;
|
|
[CEReactions] attribute USVString longDesc;
|
|
[CEReactions] attribute boolean noResize;
|
|
readonly attribute Document? contentDocument;
|
|
readonly attribute WindowProxy? contentWindow;
|
|
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString marginHeight;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString marginWidth;
|
|
};
|
|
|
|
partial interface HTMLAnchorElement {
|
|
[CEReactions] attribute DOMString coords;
|
|
[CEReactions] attribute DOMString charset;
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute DOMString rev;
|
|
[CEReactions] attribute DOMString shape;
|
|
};
|
|
|
|
partial interface HTMLAreaElement {
|
|
[CEReactions] attribute boolean noHref;
|
|
};
|
|
|
|
partial interface HTMLBodyElement {
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString text;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString link;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString vLink;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString aLink;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
|
|
[CEReactions] attribute DOMString background;
|
|
};
|
|
|
|
partial interface HTMLBRElement {
|
|
[CEReactions] attribute DOMString clear;
|
|
};
|
|
|
|
partial interface HTMLTableCaptionElement {
|
|
[CEReactions] attribute DOMString align;
|
|
};
|
|
|
|
partial interface HTMLTableColElement {
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute DOMString ch;
|
|
[CEReactions] attribute DOMString chOff;
|
|
[CEReactions] attribute DOMString vAlign;
|
|
[CEReactions] attribute DOMString width;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLDirectoryElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute boolean compact;
|
|
};
|
|
|
|
partial interface HTMLDivElement {
|
|
[CEReactions] attribute DOMString align;
|
|
};
|
|
|
|
partial interface HTMLDListElement {
|
|
[CEReactions] attribute boolean compact;
|
|
};
|
|
|
|
partial interface HTMLEmbedElement {
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute DOMString name;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface HTMLFontElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString color;
|
|
[CEReactions] attribute DOMString face;
|
|
[CEReactions] attribute DOMString size;
|
|
};
|
|
|
|
partial interface HTMLHeadingElement {
|
|
[CEReactions] attribute DOMString align;
|
|
};
|
|
|
|
partial interface HTMLHRElement {
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute DOMString color;
|
|
[CEReactions] attribute boolean noShade;
|
|
[CEReactions] attribute DOMString size;
|
|
[CEReactions] attribute DOMString width;
|
|
};
|
|
|
|
partial interface HTMLHtmlElement {
|
|
[CEReactions] attribute DOMString version;
|
|
};
|
|
|
|
partial interface HTMLIFrameElement {
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute DOMString scrolling;
|
|
[CEReactions] attribute DOMString frameBorder;
|
|
[CEReactions] attribute USVString longDesc;
|
|
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString marginHeight;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString marginWidth;
|
|
};
|
|
|
|
partial interface HTMLImageElement {
|
|
[CEReactions] attribute DOMString name;
|
|
[CEReactions] attribute USVString lowsrc;
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute unsigned long hspace;
|
|
[CEReactions] attribute unsigned long vspace;
|
|
[CEReactions] attribute USVString longDesc;
|
|
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString border;
|
|
};
|
|
|
|
partial interface HTMLInputElement {
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute DOMString useMap;
|
|
};
|
|
|
|
partial interface HTMLLegendElement {
|
|
[CEReactions] attribute DOMString align;
|
|
};
|
|
|
|
partial interface HTMLLIElement {
|
|
[CEReactions] attribute DOMString type;
|
|
};
|
|
|
|
partial interface HTMLLinkElement {
|
|
[CEReactions] attribute DOMString charset;
|
|
[CEReactions] attribute DOMString rev;
|
|
[CEReactions] attribute DOMString target;
|
|
};
|
|
|
|
partial interface HTMLMenuElement {
|
|
[CEReactions] attribute boolean compact;
|
|
};
|
|
|
|
partial interface HTMLMetaElement {
|
|
[CEReactions] attribute DOMString scheme;
|
|
};
|
|
|
|
partial interface HTMLObjectElement {
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute DOMString archive;
|
|
[CEReactions] attribute DOMString code;
|
|
[CEReactions] attribute boolean declare;
|
|
[CEReactions] attribute unsigned long hspace;
|
|
[CEReactions] attribute DOMString standby;
|
|
[CEReactions] attribute unsigned long vspace;
|
|
[CEReactions] attribute DOMString codeBase;
|
|
[CEReactions] attribute DOMString codeType;
|
|
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString border;
|
|
};
|
|
|
|
partial interface HTMLOListElement {
|
|
[CEReactions] attribute boolean compact;
|
|
};
|
|
|
|
partial interface HTMLParagraphElement {
|
|
[CEReactions] attribute DOMString align;
|
|
};
|
|
|
|
partial interface HTMLParamElement {
|
|
[CEReactions] attribute DOMString type;
|
|
[CEReactions] attribute DOMString valueType;
|
|
};
|
|
|
|
partial interface HTMLPreElement {
|
|
[CEReactions] attribute long width;
|
|
};
|
|
|
|
partial interface HTMLStyleElement {
|
|
[CEReactions] attribute DOMString type;
|
|
};
|
|
|
|
partial interface HTMLScriptElement {
|
|
[CEReactions] attribute DOMString charset;
|
|
[CEReactions] attribute DOMString event;
|
|
[CEReactions] attribute DOMString htmlFor;
|
|
};
|
|
|
|
partial interface HTMLTableElement {
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute DOMString border;
|
|
[CEReactions] attribute DOMString frame;
|
|
[CEReactions] attribute DOMString rules;
|
|
[CEReactions] attribute DOMString summary;
|
|
[CEReactions] attribute DOMString width;
|
|
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString cellPadding;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString cellSpacing;
|
|
};
|
|
|
|
partial interface HTMLTableSectionElement {
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute DOMString ch;
|
|
[CEReactions] attribute DOMString chOff;
|
|
[CEReactions] attribute DOMString vAlign;
|
|
};
|
|
|
|
partial interface HTMLTableCellElement {
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute DOMString axis;
|
|
[CEReactions] attribute DOMString height;
|
|
[CEReactions] attribute DOMString width;
|
|
|
|
[CEReactions] attribute DOMString ch;
|
|
[CEReactions] attribute DOMString chOff;
|
|
[CEReactions] attribute boolean noWrap;
|
|
[CEReactions] attribute DOMString vAlign;
|
|
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
|
|
};
|
|
|
|
partial interface HTMLTableRowElement {
|
|
[CEReactions] attribute DOMString align;
|
|
[CEReactions] attribute DOMString ch;
|
|
[CEReactions] attribute DOMString chOff;
|
|
[CEReactions] attribute DOMString vAlign;
|
|
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
|
|
};
|
|
|
|
partial interface HTMLUListElement {
|
|
[CEReactions] attribute boolean compact;
|
|
[CEReactions] attribute DOMString type;
|
|
};
|
|
|
|
partial interface Document {
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString fgColor;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString linkColor;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString vlinkColor;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString alinkColor;
|
|
[CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
|
|
|
|
[SameObject] readonly attribute HTMLCollection anchors;
|
|
[SameObject] readonly attribute HTMLCollection applets;
|
|
|
|
void clear();
|
|
void captureEvents();
|
|
void releaseEvents();
|
|
|
|
[SameObject] readonly attribute HTMLAllCollection all;
|
|
};
|
|
|
|
partial interface Window {
|
|
void captureEvents();
|
|
void releaseEvents();
|
|
|
|
[Replaceable, SameObject] readonly attribute External external;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface External {
|
|
void AddSearchProvider();
|
|
void IsSearchProviderInstalled();
|
|
};
|