From 915c60be2272677d35f309b3ec435f5bec94866b Mon Sep 17 00:00:00 2001
From: Dominique Hazael-Massieux [Exposed=Window,
LegacyUnenumerableNamedProperties]
-interface HTMLAllCollection {
+interface HTMLAllCollection {
readonly attribute unsigned long length;
getter Element (unsigned long index);
getter (HTMLCollection or Element)? namedItem(DOMString name);
@@ -7510,13 +7510,13 @@ interface HTMLAllCollection {
elements in
form
elements.
[Exposed=Window]
-interface HTMLFormControlsCollection : HTMLCollection {
+interface HTMLFormControlsCollection : HTMLCollection {
// inherits length and item()
getter (RadioNodeList or Element)? namedItem(DOMString name); // shadows inherited namedItem()
};
[Exposed=Window]
-interface RadioNodeList : NodeList {
+interface RadioNodeList : NodeList {
attribute DOMString value;
};
@@ -7648,7 +7648,7 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E.
element's descendants.
[Exposed=Window]
-interface HTMLOptionsCollection : HTMLCollection {
+interface HTMLOptionsCollection : HTMLCollection {
// inherits item(), namedItem()
[CEReactions] attribute unsigned long length; // shadows inherited length
[CEReactions] setter undefined (unsigned long index, HTMLOptionElement? option);
@@ -7839,7 +7839,7 @@ interface HTMLOptionsCollection : HTMLCollection {
of strings.
[Exposed=(Window,Worker)]
-interface DOMStringList {
+interface DOMStringList {
readonly attribute unsigned long length;
getter DOMString? item(unsigned long index);
boolean contains(DOMString string);
@@ -9144,8 +9144,8 @@ o.myself = o;
DOM defines a Document
interface, which
this specification extends significantly.
- enum DocumentReadyState { "loading", "interactive", "complete" };
-typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
+ enum DocumentReadyState { "loading", "interactive", "complete" };
+typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
[LegacyOverrideBuiltIns]
partial interface Document {
@@ -10156,7 +10156,7 @@ partial interface Document {
the HTMLElement
interface.
[Exposed=Window]
-interface HTMLElement : Element {
+interface HTMLElement : Element {
[HTMLConstructor] constructor();
// metadata attributes
@@ -10186,7 +10186,7 @@ interface HTMLElement : Element {
HTMLElement includes HTMLOrSVGElement;
[Exposed=Window]
-interface HTMLUnknownElement : HTMLElement {
+interface HTMLUnknownElement : HTMLElement {
// Note: intentionally no [HTMLConstructor]
};
@@ -10235,7 +10235,7 @@ interface HTMLUnknownElement : HTMLElement {
Features shared between HTML and SVG elements use the HTMLOrSVGElement
interface
mixin:
- interface mixin HTMLOrSVGElement {
+ interface mixin HTMLOrSVGElement {
[SameObject] readonly attribute DOMStringMap dataset;
attribute DOMString nonce; // intentionally no [CEReactions]
@@ -12432,7 +12432,7 @@ translate="no">HTML</span> markup.</p>
[Exposed=Window,
LegacyOverrideBuiltIns]
-interface DOMStringMap {
+interface DOMStringMap {
getter DOMString (DOMString name);
[CEReactions] setter undefined (DOMString name, DOMString value);
[CEReactions] deleter undefined (DOMString name);
@@ -12956,7 +12956,7 @@ interface DOMStringMap {
DOM interface:
[Exposed=Window]
-interface HTMLHtmlElement : HTMLElement {
+interface HTMLHtmlElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -13015,7 +13015,7 @@ gave me some of the songs they wrote. I love sharing my music.</p>
DOM interface:
[Exposed=Window]
-interface HTMLHeadElement : HTMLElement {
+interface HTMLHeadElement : HTMLElement {
[HTMLConstructor] constructor();
};
@@ -13080,7 +13080,7 @@ interface HTMLHeadElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLTitleElement : HTMLElement {
+interface HTMLTitleElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString text;
@@ -13177,7 +13177,7 @@ interface HTMLTitleElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLBaseElement : HTMLElement {
+interface HTMLBaseElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString href;
@@ -13378,7 +13378,7 @@ interface HTMLBaseElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLLinkElement : HTMLElement {
+interface HTMLLinkElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString href;
@@ -14040,7 +14040,7 @@ interface HTMLLinkElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLMetaElement : HTMLElement {
+interface HTMLMetaElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString name;
@@ -15209,7 +15209,7 @@ people expect to have work and what is necessary.
DOM interface:
[Exposed=Window]
-interface HTMLStyleElement : HTMLElement {
+interface HTMLStyleElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString media;
@@ -15563,7 +15563,7 @@ interface HTMLStyleElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLBodyElement : HTMLElement {
+interface HTMLBodyElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -16303,7 +16303,7 @@ isn't his only passion. He also enjoys other pleasures.</p>
DOM interface:
[Exposed=Window]
-interface HTMLHeadingElement : HTMLElement {
+interface HTMLHeadingElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -18015,7 +18015,7 @@ Space is not the only void
DOM interface:
[Exposed=Window]
-interface HTMLParagraphElement : HTMLElement {
+interface HTMLParagraphElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -18162,7 +18162,7 @@ and is further discussed below.</div>
DOM interface:
[Exposed=Window]
-interface HTMLHRElement : HTMLElement {
+interface HTMLHRElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -18274,7 +18274,7 @@ of Gralmond's winters.</p>
DOM interface:
[Exposed=Window]
-interface HTMLPreElement : HTMLElement {
+interface HTMLPreElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -18395,7 +18395,7 @@ a friend lost to the
DOM interface:
[Exposed=Window]
-interface HTMLQuoteElement : HTMLElement {
+interface HTMLQuoteElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString cite;
@@ -18591,7 +18591,7 @@ be cowed by the possibility.</blockquote>
DOM interface:
[Exposed=Window]
-interface HTMLOListElement : HTMLElement {
+interface HTMLOListElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute boolean reversed;
@@ -18779,7 +18779,7 @@ I first lived there):</p>
DOM interface:
[Exposed=Window]
-interface HTMLUListElement : HTMLElement {
+interface HTMLUListElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -18845,7 +18845,7 @@ interface HTMLUListElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLMenuElement : HTMLElement {
+interface HTMLMenuElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -18897,7 +18897,7 @@ interface HTMLMenuElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLLIElement : HTMLElement {
+interface HTMLLIElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute long value;
@@ -19077,7 +19077,7 @@ interface HTMLLIElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLDListElement : HTMLElement {
+interface HTMLDListElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -19787,7 +19787,7 @@ included with Exhibit B.
DOM interface:
[Exposed=Window]
-interface HTMLDivElement : HTMLElement {
+interface HTMLDivElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -19875,7 +19875,7 @@ interface HTMLDivElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLAnchorElement : HTMLElement {
+interface HTMLAnchorElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString target;
@@ -21439,7 +21439,7 @@ this specification: the <abbr>WHATWG</abbr> and the
DOM interface:
[Exposed=Window]
-interface HTMLDataElement : HTMLElement {
+interface HTMLDataElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString value;
@@ -21522,7 +21522,7 @@ interface HTMLDataElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLTimeElement : HTMLElement {
+interface HTMLTimeElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString dateTime;
@@ -22643,7 +22643,7 @@ wormhole connection.</mark></p>
DOM interface:
[Exposed=Window]
-interface HTMLSpanElement : HTMLElement {
+interface HTMLSpanElement : HTMLElement {
[HTMLConstructor] constructor();
};
@@ -22693,7 +22693,7 @@ interface HTMLSpanElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLBRElement : HTMLElement {
+interface HTMLBRElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -23103,7 +23103,7 @@ document.body.appendChild(wbr);
API for a
and area
elements
- interface mixin HTMLHyperlinkElementUtils {
+ interface mixin HTMLHyperlinkElementUtils {
[CEReactions] stringifier attribute USVString href;
readonly attribute USVString origin;
[CEReactions] attribute USVString protocol;
@@ -25990,7 +25990,7 @@ document.body.appendChild(wbr);
HTMLModElement
interface:
[Exposed=Window]
-interface HTMLModElement : HTMLElement {
+interface HTMLModElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString cite;
@@ -26181,7 +26181,7 @@ interface HTMLModElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLPictureElement : HTMLElement {
+interface HTMLPictureElement : HTMLElement {
[HTMLConstructor] constructor();
};
@@ -26230,7 +26230,7 @@ interface HTMLPictureElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLSourceElement : HTMLElement {
+interface HTMLSourceElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString src;
@@ -26508,7 +26508,7 @@ interface HTMLSourceElement : HTMLElement {
[Exposed=Window,
LegacyFactoryFunction=Image(optional unsigned long width, optional unsigned long height)]
-interface HTMLImageElement : HTMLElement {
+interface HTMLImageElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString alt;
@@ -30203,7 +30203,7 @@ href="?audio">audio</a> test instead.)</p>
DOM interface:
[Exposed=Window]
-interface HTMLIFrameElement : HTMLElement {
+interface HTMLIFrameElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString src;
@@ -30991,7 +30991,7 @@ interface HTMLIFrameElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLEmbedElement : HTMLElement {
+interface HTMLEmbedElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString src;
@@ -31400,7 +31400,7 @@ interface HTMLEmbedElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLObjectElement : HTMLElement {
+interface HTMLObjectElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString data;
@@ -32034,7 +32034,7 @@ interface HTMLObjectElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLParamElement : HTMLElement {
+interface HTMLParamElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString name;
@@ -32148,7 +32148,7 @@ interface HTMLParamElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLVideoElement : HTMLMediaElement {
+interface HTMLVideoElement : HTMLMediaElement {
[HTMLConstructor] constructor();
[CEReactions] attribute unsigned long width;
@@ -32537,7 +32537,7 @@ zero or more track
elements, then
[Exposed=Window,
LegacyFactoryFunction=Audio(optional DOMString src)]
-interface HTMLAudioElement : HTMLMediaElement {
+interface HTMLAudioElement : HTMLMediaElement {
[HTMLConstructor] constructor();
};
@@ -32681,7 +32681,7 @@ interface HTMLAudioElement : HTMLMediaElement {
DOM interface:
[Exposed=Window]
-interface HTMLTrackElement : HTMLElement {
+interface HTMLTrackElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString kind;
@@ -32923,11 +32923,11 @@ interface HTMLTrackElement : HTMLElement {
HTMLMediaElement objects (audio
and video
, in this
specification) are simply known as media elements.
- enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
-typedef (MediaStream or MediaSource or Blob) MediaProvider;
+ enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
+typedef (MediaStream or MediaSource or Blob) MediaProvider;
[Exposed=Window]
-interface HTMLMediaElement : HTMLElement {
+interface HTMLMediaElement : HTMLElement {
// error state
readonly attribute MediaError? error;
@@ -33088,7 +33088,7 @@ interface HTMLMediaElement : HTMLElement {
[Exposed=Window]
-interface MediaError {
+interface MediaError {
const unsigned short MEDIA_ERR_ABORTED = 1;
const unsigned short MEDIA_ERR_NETWORK = 2;
const unsigned short MEDIA_ERR_DECODE = 3;
@@ -36090,7 +36090,7 @@ interface MediaError {
attributes defined in the previous section.
[Exposed=Window]
-interface AudioTrackList : EventTarget {
+interface AudioTrackList : EventTarget {
readonly attribute unsigned long length;
getter AudioTrack (unsigned long index);
AudioTrack? getTrackById(DOMString id);
@@ -36101,7 +36101,7 @@ interface AudioTrackList : EventTarget {
};
[Exposed=Window]
-interface AudioTrack {
+interface AudioTrack {
readonly attribute DOMString id;
readonly attribute DOMString kind;
readonly attribute DOMString label;
@@ -36110,7 +36110,7 @@ interface AudioTrack {
};
[Exposed=Window]
-interface VideoTrackList : EventTarget {
+interface VideoTrackList : EventTarget {
readonly attribute unsigned long length;
getter VideoTrack (unsigned long index);
VideoTrack? getTrackById(DOMString id);
@@ -36122,7 +36122,7 @@ interface VideoTrackList : EventTarget {
};
[Exposed=Window]
-interface VideoTrack {
+interface VideoTrack {
readonly attribute DOMString id;
readonly attribute DOMString kind;
readonly attribute DOMString label;
@@ -37348,7 +37348,7 @@ interface VideoTrack {
Text track API
[Exposed=Window]
-interface TextTrackList : EventTarget {
+interface TextTrackList : EventTarget {
readonly attribute unsigned long length;
getter TextTrack (unsigned long index);
TextTrack? getTrackById(DOMString id);
@@ -37415,11 +37415,11 @@ interface TextTrackList : EventTarget {
- enum TextTrackMode { "disabled", "hidden", "showing" };
-enum TextTrackKind { "subtitles", "captions", "descriptions", "metadata" };
[Exposed=Window]
-interface TextTrack : EventTarget {
+interface TextTrack : EventTarget {
readonly attribute TextTrackKind kind;
readonly attribute DOMString label;
readonly attribute DOMString language;
@@ -37756,7 +37756,7 @@ window.onbeforeunload = function (e) {
[Exposed=Window]
-interface TextTrackCueList {
+interface TextTrackCueList {
readonly attribute unsigned long length;
getter TextTrackCue (unsigned long index);
TextTrackCue? getCueById(DOMString id);
@@ -37813,7 +37813,7 @@ interface TextTrackCueList {
[Exposed=Window]
-interface TextTrackCue : EventTarget {
+interface TextTrackCue : EventTarget {
readonly attribute TextTrack? track;
attribute DOMString id;
@@ -38204,7 +38204,7 @@ red:89
represent a list of ranges (periods) of time.
[Exposed=Window]
-interface TimeRanges {
+interface TimeRanges {
readonly attribute unsigned long length;
double start(unsigned long index);
double end(unsigned long index);
@@ -38291,13 +38291,13 @@ interface TimeRanges {
The TrackEvent
interface
[Exposed=Window]
-interface TrackEvent : Event {
+interface TrackEvent : Event {
constructor(DOMString type, optional TrackEventInit eventInitDict = {});
readonly attribute (VideoTrack or AudioTrack or TextTrack)? track;
};
-dictionary TrackEventInit : EventInit {
+dictionary TrackEventInit : EventInit {
(VideoTrack or AudioTrack or TextTrack)? track = null;
};
@@ -38926,7 +38926,7 @@ dictionary TrackEventInit : EventInit {
DOM interface:
[Exposed=Window]
-interface HTMLMapElement : HTMLElement {
+interface HTMLMapElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString name;
@@ -39037,7 +39037,7 @@ interface HTMLMapElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLAreaElement : HTMLElement {
+interface HTMLAreaElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString alt;
@@ -39700,7 +39700,7 @@ interface HTMLAreaElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLTableElement : HTMLElement {
+interface HTMLTableElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute HTMLTableCaptionElement? caption;
@@ -40368,7 +40368,7 @@ side in the right column.</p>
DOM interface:
[Exposed=Window]
-interface HTMLTableCaptionElement : HTMLElement {
+interface HTMLTableCaptionElement : HTMLElement {
[HTMLConstructor] constructor();
// also has obsolete members
@@ -40465,7 +40465,7 @@ the cell that corresponds to the values of the two dice.
DOM interface:
[Exposed=Window]
-interface HTMLTableColElement : HTMLElement {
+interface HTMLTableColElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute unsigned long span;
@@ -40563,7 +40563,7 @@ interface HTMLTableColElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLTableSectionElement : HTMLElement {
+interface HTMLTableSectionElement : HTMLElement {
[HTMLConstructor] constructor();
[SameObject] readonly attribute HTMLCollection rows;
@@ -40808,7 +40808,7 @@ interface HTMLTableSectionElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLTableRowElement : HTMLElement {
+interface HTMLTableRowElement : HTMLElement {
[HTMLConstructor] constructor();
readonly attribute long rowIndex;
@@ -40977,7 +40977,7 @@ interface HTMLTableRowElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLTableCellElement : HTMLElement {
+interface HTMLTableCellElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute unsigned long colSpan;
@@ -43019,7 +43019,7 @@ interface HTMLTableCellElement : HTMLElement {
[Exposed=Window,
LegacyOverrideBuiltIns,
LegacyUnenumerableNamedProperties]
-interface HTMLFormElement : HTMLElement {
+interface HTMLFormElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString acceptCharset;
@@ -43460,7 +43460,7 @@ interface HTMLFormElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLLabelElement : HTMLElement {
+interface HTMLLabelElement : HTMLElement {
[HTMLConstructor] constructor();
readonly attribute HTMLFormElement? form;
@@ -43805,7 +43805,7 @@ interface HTMLLabelElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLInputElement : HTMLElement {
+interface HTMLInputElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString accept;
@@ -50018,7 +50018,7 @@ You cannot submit this form when the field is incorrect.
DOM interface:
[Exposed=Window]
-interface HTMLButtonElement : HTMLElement {
+interface HTMLButtonElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute boolean disabled;
@@ -50225,7 +50225,7 @@ interface HTMLButtonElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLSelectElement : HTMLElement {
+interface HTMLSelectElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString autocomplete;
@@ -50762,7 +50762,7 @@ interface HTMLSelectElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLDataListElement : HTMLElement {
+interface HTMLDataListElement : HTMLElement {
[HTMLConstructor] constructor();
[SameObject] readonly attribute HTMLCollection options;
@@ -50868,7 +50868,7 @@ interface HTMLDataListElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLOptGroupElement : HTMLElement {
+interface HTMLOptGroupElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute boolean disabled;
@@ -50976,7 +50976,7 @@ interface HTMLOptGroupElement : HTMLElement {
[Exposed=Window,
LegacyFactoryFunction=Option(optional DOMString text = "", optional DOMString value, optional boolean defaultSelected = false, optional boolean selected = false)]
-interface HTMLOptionElement : HTMLElement {
+interface HTMLOptionElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute boolean disabled;
@@ -51250,7 +51250,7 @@ interface HTMLOptionElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLTextAreaElement : HTMLElement {
+interface HTMLTextAreaElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString autocomplete;
@@ -51745,7 +51745,7 @@ Daddy"></textarea>
DOM interface:
[Exposed=Window]
-interface HTMLOutputElement : HTMLElement {
+interface HTMLOutputElement : HTMLElement {
[HTMLConstructor] constructor();
[SameObject, PutForwards=value] readonly attribute DOMTokenList htmlFor;
@@ -51942,7 +51942,7 @@ interface HTMLOutputElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLProgressElement : HTMLElement {
+interface HTMLProgressElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute double value;
@@ -52122,7 +52122,7 @@ interface HTMLProgressElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLMeterElement : HTMLElement {
+interface HTMLMeterElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute double value;
@@ -52501,7 +52501,7 @@ out of 233 257 824 bytes available</meter></p>
DOM interface:
[Exposed=Window]
-interface HTMLFieldSetElement : HTMLElement {
+interface HTMLFieldSetElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute boolean disabled;
@@ -52708,7 +52708,7 @@ interface HTMLFieldSetElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLLegendElement : HTMLElement {
+interface HTMLLegendElement : HTMLElement {
[HTMLConstructor] constructor();
readonly attribute HTMLFormElement? form;
@@ -55466,7 +55466,7 @@ MIT Room 32-G524
data-x="dom-SelectionMode-start">start", "end",
"preserve" (default).
- enum SelectionMode {
+ enum SelectionMode {
"select",
"start",
"end",
@@ -55937,7 +55937,7 @@ control.setSelectionRange(oldStart + prefix.length, oldEnd + prefix.length, oldD
object is live.
[Exposed=Window]
-interface ValidityState {
+interface ValidityState {
readonly attribute boolean valueMissing;
readonly attribute boolean typeMismatch;
readonly attribute boolean patternMismatch;
@@ -57006,13 +57006,13 @@ fur
The SubmitEvent
interface
[Exposed=Window]
-interface SubmitEvent : Event {
+interface SubmitEvent : Event {
constructor(DOMString type, optional SubmitEventInit eventInitDict = {});
readonly attribute HTMLElement? submitter;
};
-dictionary SubmitEventInit : EventInit {
+dictionary SubmitEventInit : EventInit {
HTMLElement? submitter = null;
};
@@ -57034,13 +57034,13 @@ dictionary SubmitEventInit : EventInit {
The FormDataEvent
interface
[Exposed=Window]
-interface FormDataEvent : Event {
+interface FormDataEvent : Event {
constructor(DOMString type, FormDataEventInit eventInitDict);
readonly attribute FormData formData;
};
-dictionary FormDataEventInit : EventInit {
+dictionary FormDataEventInit : EventInit {
required FormData formData;
};
@@ -57113,7 +57113,7 @@ dictionary FormDataEventInit : EventInit {
DOM interface:
[Exposed=Window]
-interface HTMLDetailsElement : HTMLElement {
+interface HTMLDetailsElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute boolean open;
@@ -57609,7 +57609,7 @@ interface HTMLDetailsElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLDialogElement : HTMLElement {
+interface HTMLDialogElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute boolean open;
@@ -57975,7 +57975,7 @@ interface HTMLDialogElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLScriptElement : HTMLElement {
+interface HTMLScriptElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString src;
@@ -59425,7 +59425,7 @@ not-slash = %x0000-002E / %x0030-10FFFF
DOM interface:
[Exposed=Window]
-interface HTMLTemplateElement : HTMLElement {
+interface HTMLTemplateElement : HTMLElement {
[HTMLConstructor] constructor();
readonly attribute DocumentFragment content;
@@ -59855,10 +59855,10 @@ dictionary AssignedNodesOptions {
For implementers.
DOM interface:
- typedef (CanvasRenderingContext2D or ImageBitmapRenderingContext or WebGLRenderingContext or WebGL2RenderingContext) RenderingContext;
+ typedef (CanvasRenderingContext2D or ImageBitmapRenderingContext or WebGLRenderingContext or WebGL2RenderingContext) RenderingContext;
[Exposed=Window]
-interface HTMLCanvasElement : HTMLElement {
+interface HTMLCanvasElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute unsigned long width;
@@ -59871,7 +59871,7 @@ interface HTMLCanvasElement : HTMLElement {
OffscreenCanvas transferControlToOffscreen();
};
-callback BlobCallback = undefined (Blob? blob);
+callback BlobCallback = undefined (Blob? blob);
Uses HTMLCanvasElement
.
@@ -60349,28 +60349,28 @@ callback BlobCallback = undefined (Blob? blob);
typedef (HTMLImageElement or
- SVGImageElement) HTMLOrSVGImageElement;
+ SVGImageElement) HTMLOrSVGImageElement;
typedef (HTMLOrSVGImageElement or
HTMLVideoElement or
HTMLCanvasElement or
ImageBitmap or
- OffscreenCanvas) CanvasImageSource;
+ OffscreenCanvas) CanvasImageSource;
enum PredefinedColorSpace { "srgb", "display-p3" };
-enum CanvasFillRule { "nonzero", "evenodd" };
+enum CanvasFillRule { "nonzero", "evenodd" };
-dictionary CanvasRenderingContext2DSettings {
+dictionary CanvasRenderingContext2DSettings {
boolean alpha = true;
boolean desynchronized = false;
PredefinedColorSpace colorSpace = "srgb";
};
-enum ImageSmoothingQuality { "low", "medium", "high" };
+enum ImageSmoothingQuality { "low", "medium", "high" };
[Exposed=Window]
-interface CanvasRenderingContext2D {
+interface CanvasRenderingContext2D {
// back-reference to the canvas
readonly attribute HTMLCanvasElement canvas;
@@ -60393,14 +60393,14 @@ interface CanvasRenderingContext2D {
CanvasRenderingContext2D includes CanvasTextDrawingStyles;
CanvasRenderingContext2D includes CanvasPath;
-interface mixin CanvasState {
+interface mixin CanvasState {
// state
undefined save(); // push state on state stack
undefined restore(); // pop state stack and restore state
undefined reset(); // reset the rendering context to its default state
};
-interface mixin CanvasTransform {
+interface mixin CanvasTransform {
// transformations (default transform is the identity matrix)
undefined scale(unrestricted double x, unrestricted double y);
undefined rotate(unrestricted double angle);
@@ -60418,13 +60418,13 @@ interface mixin CanvasTransform {
-->
};
-interface mixin CanvasCompositing {
+interface mixin CanvasCompositing {
// compositing
attribute unrestricted double globalAlpha; // (default 1.0)
attribute DOMString globalCompositeOperation; // (default source-over)
};
-interface mixin CanvasImageSmoothing {
+interface mixin CanvasImageSmoothing {
// image smoothing
attribute boolean imageSmoothingEnabled; // (default true)
attribute ImageSmoothingQuality imageSmoothingQuality; // (default low)
@@ -60439,7 +60439,7 @@ interface mixin CanvasImageSmoothing {
-->
};
-interface mixin CanvasFillStrokeStyles {
+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)
@@ -60453,7 +60453,7 @@ interface mixin CanvasFillStrokeStyles {
-->
};
-interface mixin CanvasShadowStyles {
+interface mixin CanvasShadowStyles {
// shadows
attribute unrestricted double shadowOffsetX; // (default 0)
attribute unrestricted double shadowOffsetY; // (default 0)
@@ -60461,19 +60461,19 @@ interface mixin CanvasShadowStyles {
attribute DOMString shadowColor; // (default transparent black)
};
-interface mixin CanvasFilters {
+interface mixin CanvasFilters {
// filters
attribute DOMString filter; // (default "none")
};
-interface mixin CanvasRect {
+interface mixin CanvasRect {
// rects
undefined clearRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
undefined fillRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
undefined strokeRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
};
-interface mixin CanvasDrawPath {
+interface mixin CanvasDrawPath {
// path API (see also CanvasPath)
undefined beginPath();
undefined fill(optional CanvasFillRule fillRule = "nonzero");
@@ -60488,28 +60488,28 @@ interface mixin CanvasDrawPath {
boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
};
-interface mixin CanvasUserInterface {
+interface mixin CanvasUserInterface {
undefined drawFocusIfNeeded(Element element);
undefined drawFocusIfNeeded(Path2D path, Element element);
undefined scrollPathIntoView();
undefined scrollPathIntoView(Path2D path);
};
-interface mixin CanvasText {
+interface mixin CanvasText {
// text (see also the CanvasPathDrawingStyles and CanvasTextDrawingStyles interfaces)
undefined fillText(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
undefined strokeText(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
TextMetrics measureText(DOMString text);
};
-interface mixin CanvasDrawImage {
+interface mixin CanvasDrawImage {
// drawing images
undefined drawImage(CanvasImageSource image, unrestricted double dx, unrestricted double dy);
undefined drawImage(CanvasImageSource image, unrestricted double dx, unrestricted double dy, unrestricted double dw, unrestricted double dh);
undefined 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 {
+interface mixin CanvasImageData {
// pixel manipulation
ImageData createImageData([EnforceRange] long sw, [EnforceRange] long sh, optional ImageDataSettings settings = {});
ImageData createImageData(ImageData imagedata);
@@ -60518,17 +60518,17 @@ interface mixin CanvasImageData {
undefined putImageData(ImageData imagedata, [EnforceRange] long dx, [EnforceRange] long dy, [EnforceRange] long dirtyX, [EnforceRange] long dirtyY, [EnforceRange] long dirtyWidth, [EnforceRange] 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" };
-enum CanvasFontKerning { "auto", "normal", "none" };
-enum CanvasFontStretch { "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded" };
-enum CanvasFontVariantCaps { "normal", "small-caps", "all-small-caps", "petite-caps", "all-petite-caps", "unicase", "titling-caps" };
-enum CanvasTextRendering { "auto", "optimizeSpeed", "optimizeLegibility", "geometricPrecision" };
-
-interface mixin CanvasPathDrawingStyles {
+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" };
+enum CanvasFontKerning { "auto", "normal", "none" };
+enum CanvasFontStretch { "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded" };
+enum CanvasFontVariantCaps { "normal", "small-caps", "all-small-caps", "petite-caps", "all-petite-caps", "unicase", "titling-caps" };
+enum CanvasTextRendering { "auto", "optimizeSpeed", "optimizeLegibility", "geometricPrecision" };
+
+interface mixin CanvasPathDrawingStyles {
// line caps/joins
attribute unrestricted double lineWidth; // (default 1)
attribute CanvasLineCap lineCap; // (default "butt")
@@ -60541,7 +60541,7 @@ interface mixin CanvasPathDrawingStyles {
attribute unrestricted double lineDashOffset;
};
-interface mixin CanvasTextDrawingStyles {
+interface mixin CanvasTextDrawingStyles {
// text
attribute DOMString font; // (default 10px sans-serif)
attribute CanvasTextAlign textAlign; // (default: "start")
@@ -60555,7 +60555,7 @@ interface mixin CanvasTextDrawingStyles {
attribute CanvasTextRendering textRendering; // (default: "normal")
};
-interface mixin CanvasPath {
+interface mixin CanvasPath {
// shared path API methods
undefined closePath();
undefined moveTo(unrestricted double x, unrestricted double y);
@@ -60569,19 +60569,19 @@ interface mixin CanvasPath {
};
[Exposed=(Window,Worker)]
-interface CanvasGradient {
+interface CanvasGradient {
// opaque object
undefined addColorStop(double offset, DOMString color);
};
[Exposed=(Window,Worker)]
-interface CanvasPattern {
+interface CanvasPattern {
// opaque object
undefined setTransform(optional DOMMatrix2DInit transform = {});
};
[Exposed=(Window,Worker)]
-interface TextMetrics {
+interface TextMetrics {
// x-direction
readonly attribute double width; // advance width
readonly attribute double actualBoundingBoxLeft;
@@ -60605,7 +60605,7 @@ dictionary ImageDataSettings {
[Exposed=(Window,Worker),
Serializable]
-interface ImageData {
+interface ImageData {
constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings settings = {});
constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh, optional ImageDataSettings settings = {});
@@ -60616,7 +60616,7 @@ interface ImageData {
};
[Exposed=(Window,Worker)]
-interface Path2D {
+interface Path2D {
constructor(optional (Path2D or DOMString) path);
undefined addPath(Path2D path, optional DOMMatrix2DInit transform = {});
@@ -65565,12 +65565,12 @@ console.log(pixels.data[2]);
The ImageBitmapRenderingContext
interface
[Exposed=(Window,Worker)]
-interface ImageBitmapRenderingContext {
+interface ImageBitmapRenderingContext {
readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
undefined transferFromImageBitmap(ImageBitmap? bitmap);
};
-dictionary ImageBitmapRenderingContextSettings {
+dictionary ImageBitmapRenderingContextSettings {
boolean alpha = true;
};
@@ -65783,17 +65783,17 @@ dictionary ImageBitmapRenderingContextSettings {
The OffscreenCanvas
interface
- typedef (OffscreenCanvasRenderingContext2D or ImageBitmapRenderingContext or WebGLRenderingContext or WebGL2RenderingContext) OffscreenRenderingContext;
+ typedef (OffscreenCanvasRenderingContext2D or ImageBitmapRenderingContext or WebGLRenderingContext or WebGL2RenderingContext) OffscreenRenderingContext;
-dictionary ImageEncodeOptions {
+dictionary ImageEncodeOptions {
DOMString type = "image/png";
unrestricted double quality;
};
-enum OffscreenRenderingContextId { "2d", "bitmaprenderer", "webgl", "webgl2" };
+enum OffscreenRenderingContextId { "2d", "bitmaprenderer", "webgl", "webgl2" };
[Exposed=(Window,Worker), Transferable]
-interface OffscreenCanvas : EventTarget {
+interface OffscreenCanvas : EventTarget {
constructor([EnforceRange] unsigned long long width, [EnforceRange] unsigned long long height);
attribute [EnforceRange] unsigned long long width;
@@ -66193,7 +66193,7 @@ interface OffscreenCanvas : EventTarget {
The offscreen 2D rendering context
[Exposed=(Window,Worker)]
-interface OffscreenCanvasRenderingContext2D {
+interface OffscreenCanvasRenderingContext2D {
undefined commit();
readonly attribute OffscreenCanvas canvas;
};
@@ -67440,16 +67440,16 @@ document.body.append(parent);
Window
object.
[Exposed=Window]
-interface CustomElementRegistry {
+interface CustomElementRegistry {
[CEReactions] undefined define(DOMString name, CustomElementConstructor constructor, optional ElementDefinitionOptions options = {});
(CustomElementConstructor or undefined) get(DOMString name);
Promise<CustomElementConstructor> whenDefined(DOMString name);
[CEReactions] undefined upgrade(Node root);
};
-callback CustomElementConstructor = HTMLElement ();
+callback CustomElementConstructor = HTMLElement ();
-dictionary ElementDefinitionOptions {
+dictionary ElementDefinitionOptions {
DOMString extends;
};
@@ -68384,7 +68384,7 @@ customElements.define("x-foo", class extends HTMLElement {
defined in the following sections:
[Exposed=Window]
-interface ElementInternals {
+interface ElementInternals {
// Shadow root access
readonly attribute ShadowRoot
? shadowRoot;
@@ -68409,7 +68409,7 @@ interface ElementInternals {
// Accessibility semantics
ElementInternals includes ARIAMixin;
-dictionary ValidityStateFlags {
+dictionary ValidityStateFlags {
boolean valueMissing = false;
boolean typeMismatch = false;
boolean patternMismatch = false;
@@ -74822,7 +74822,7 @@ END:VCARD
Focus management APIs
- dictionary FocusOptions {
+ dictionary FocusOptions {
boolean preventScroll = false;
};
@@ -75421,7 +75421,7 @@ addShortcutKeyLabel(document.getElementById('c'));
Making document regions editable: The contenteditable
content attribute
- interface mixin ElementContentEditable {
+ interface mixin ElementContentEditable {
[CEReactions] attribute DOMString contentEditable;
[CEReactions] attribute DOMString enterKeyHint;
readonly attribute boolean isContentEditable;
@@ -76595,7 +76595,7 @@ body { display:none }
underlies a drag-and-drop operation.
[Exposed=Window]
-interface DataTransfer {
+interface DataTransfer {
constructor();
attribute DOMString dropEffect;
@@ -76978,7 +76978,7 @@ interface DataTransfer {
object.
[Exposed=Window]
-interface DataTransferItemList {
+interface DataTransferItemList {
readonly attribute unsigned long length;
getter DataTransferItem (unsigned long index);
DataTransferItem? add(DOMString data, DOMString type);
};
-callback FunctionStringCallback = undefined (DOMString data);
@@ -77357,13 +77357,13 @@ callback FunctionObjectCallback = undefined (any data);-->
DragEvent
interface.
[Exposed=Window]
-interface DragEvent : MouseEvent {
+interface DragEvent : MouseEvent {
constructor(DOMString type, optional DragEventInit eventInitDict = {});
readonly attribute DataTransfer? dataTransfer;
};
-dictionary DragEventInit : MouseEventInit {
+dictionary DragEventInit : MouseEventInit {
DataTransfer? dataTransfer = null;
};
@@ -79911,7 +79911,7 @@ interface Window : EventTarget {
Window includes GlobalEventHandlers;
Window includes WindowEventHandlers;
-dictionary WindowPostMessageOptions : PostMessageOptions {
+dictionary WindowPostMessageOptions : PostMessageOptions {
USVString targetOrigin = "/";
};
@@ -80632,7 +80632,7 @@ dictionary WindowPostMessageOptions : PostMessageOptions
Each interface element is represented by a BarProp
object:
[Exposed=Window]
-interface BarProp {
+interface BarProp {
readonly attribute boolean visible;
};
@@ -83821,7 +83821,7 @@ interface BarProp {
The History
interface
- enum ScrollRestoration { "auto", "manual" };
+ enum ScrollRestoration { "auto", "manual" };
[Exposed=Window]
interface History {
@@ -84515,7 +84515,7 @@ State: <OUTPUT NAME=I>1</OUTPUT> <INPUT VALUE="Increment" TYPE=BUTTON O
by adding or replacing entries in the history
object.
[Exposed=Window]
-interface Location { // but see also additional creation steps and overridden internal methods
+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;
@@ -87539,13 +87539,13 @@ new PaymentRequest(…); // Allowed to use
The PopStateEvent
interface
[Exposed=Window]
-interface PopStateEvent : Event {
+interface PopStateEvent : Event {
constructor(DOMString type, optional PopStateEventInit eventInitDict = {});
readonly attribute any state;
};
-dictionary PopStateEventInit : EventInit {
+dictionary PopStateEventInit : EventInit {
any state = null;
};
@@ -87572,14 +87572,14 @@ dictionary PopStateEventInit : EventInit {
The HashChangeEvent
interface
[Exposed=Window]
-interface HashChangeEvent : Event {
+interface HashChangeEvent : Event {
constructor(DOMString type, optional HashChangeEventInit eventInitDict = {});
readonly attribute USVString oldURL;
readonly attribute USVString newURL;
};
-dictionary HashChangeEventInit : EventInit {
+dictionary HashChangeEventInit : EventInit {
USVString oldURL = "";
USVString newURL = "";
};
@@ -87618,13 +87618,13 @@ dictionary HashChangeEventInit : EventInit {
The PageTransitionEvent
interface
[Exposed=Window]
-interface PageTransitionEvent : Event {
+interface PageTransitionEvent : Event {
constructor(DOMString type, optional PageTransitionEventInit eventInitDict = {});
readonly attribute boolean persisted;
};
-dictionary PageTransitionEventInit : EventInit {
+dictionary PageTransitionEventInit : EventInit {
boolean persisted = false;
};
@@ -87913,7 +87913,7 @@ dictionary PageTransitionEventInit : EventInit {
The BeforeUnloadEvent
interface
[Exposed=Window]
-interface BeforeUnloadEvent : Event {
+interface BeforeUnloadEvent : Event {
attribute DOMString returnValue;
};
@@ -90902,7 +90902,7 @@ document.querySelector("button").addEventListener("click", bound);
The ErrorEvent
interface is defined as follows:
[Exposed=(Window,Worker)]
-interface ErrorEvent : Event {
+interface ErrorEvent : Event {
constructor(DOMString type, optional ErrorEventInit eventInitDict = {});
readonly attribute DOMString message;
@@ -90912,7 +90912,7 @@ interface ErrorEvent : Event {
readonly attribute any error;
};
-dictionary ErrorEventInit : EventInit {
+dictionary ErrorEventInit : EventInit {
DOMString message = "";
USVString filename = "";
unsigned long lineno = 0;
@@ -91012,14 +91012,14 @@ dictionary ErrorEventInit : EventInit {
defined as follows:
[Exposed=(Window,Worker)]
-interface PromiseRejectionEvent : Event {
+interface PromiseRejectionEvent : Event {
constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
readonly attribute Promise<any> promise;
readonly attribute any reason;
};
-dictionary PromiseRejectionEventInit : EventInit {
+dictionary PromiseRejectionEventInit : EventInit {
required Promise<any> promise;
any reason;
};
@@ -93221,8 +93221,8 @@ import "https://example.com/foo/../module2.mjs";
handlers. It is represented in Web IDL as follows:
[LegacyTreatNonObjectAsNull]
-callback EventHandlerNonNull = any (Event event);
-typedef EventHandlerNonNull? EventHandler;
+callback EventHandlerNonNull = any (Event event);
+typedef EventHandlerNonNull? EventHandler;
In JavaScript, any Function
object implements
this interface.
@@ -93258,8 +93258,8 @@ typedef EventHandlerNonNull? EventHandler;
arguments:
[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;
+callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional DOMString source, optional unsigned long lineno, optional unsigned long colno, optional any error);
+typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
window.onerror = (message, source, lineno, colno, error) => { … };
@@ -93269,8 +93269,8 @@ typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
different return value: it will be cast to a string.
[LegacyTreatNonObjectAsNull]
-callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
-typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
+callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
+typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
@@ -93681,7 +93681,7 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEvent
IDL definitions
- interface mixin GlobalEventHandlers {
+ interface mixin GlobalEventHandlers {
attribute EventHandler onabort;
attribute EventHandler onauxclick;
attribute EventHandler onblur;
@@ -93750,7 +93750,7 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEvent
attribute EventHandler onwheel;
};
-interface mixin WindowEventHandlers {
+interface mixin WindowEventHandlers {
attribute EventHandler onafterprint;
attribute EventHandler onbeforeprint;
attribute OnBeforeUnloadEventHandler onbeforeunload;
@@ -93769,7 +93769,7 @@ interface mixin WindowEventHandlers {
attribute EventHandler onunload;
};
-interface mixin DocumentAndElementEventHandlers {
+interface mixin DocumentAndElementEventHandlers {
attribute EventHandler oncopy;
attribute EventHandler oncut;
attribute EventHandler onpaste;
@@ -93832,9 +93832,9 @@ interface mixin DocumentAndElementEventHandlers {
interface mixin WindowOrWorkerGlobalScope { … };
along with an
appropriate reference.
- typedef (DOMString or Function) TimerHandler;
+ typedef (DOMString or Function) TimerHandler;
-interface mixin WindowOrWorkerGlobalScope {
+interface mixin WindowOrWorkerGlobalScope {
[Replaceable] readonly attribute USVString origin;
readonly attribute boolean isSecureContext;
readonly attribute boolean crossOriginIsolated;
@@ -94396,13 +94396,13 @@ document.body.appendChild(frame)
standalone function.
[Exposed=Window]
-interface DOMParser {
+interface DOMParser {
constructor();
[NewObject] Document
parseFromString(DOMString string, DOMParserSupportedType type);
};
-enum DOMParserSupportedType {
+enum DOMParserSupportedType {
"text/html",
"text/xml",
"application/xml",
@@ -95194,7 +95194,7 @@ function sendData(data) {
[Exposed=Window]
-interface Navigator {
+interface Navigator {
// objects implementing this interface also implement the interfaces given below
};
Navigator includes NavigatorID;
@@ -95215,7 +95215,7 @@ interface Navigator {
Client identification
- interface mixin NavigatorID {
+ interface mixin NavigatorID {
readonly attribute DOMString appCodeName; // constant "Mozilla"
readonly attribute DOMString appName; // constant "Netscape"
readonly attribute DOMString appVersion;
@@ -95393,7 +95393,7 @@ interface Navigator {
Language preferences
- interface mixin NavigatorLanguage {
+ interface mixin NavigatorLanguage {
readonly attribute DOMString language;
readonly attribute FrozenArray<DOMString> languages;
};
@@ -95550,7 +95550,7 @@ interface Navigator {
Custom scheme handlers: the registerProtocolHandler()
method
- interface mixin NavigatorContentUtils {
+ interface mixin NavigatorContentUtils {
[SecureContext] undefined registerProtocolHandler(DOMString scheme, USVString url);
[SecureContext] undefined unregisterProtocolHandler(DOMString scheme, USVString url);
};
@@ -95816,7 +95816,7 @@ interface Navigator {
Cookies
- interface mixin NavigatorCookies {
+ interface mixin NavigatorCookies {
readonly attribute boolean cookieEnabled;
};
@@ -95842,7 +95842,7 @@ interface Navigator {
Images
[Exposed=(Window,Worker), Serializable, Transferable]
-interface ImageBitmap {
+interface ImageBitmap {
readonly attribute unsigned long width;
readonly attribute unsigned long height;
undefined close();
@@ -95850,14 +95850,14 @@ interface ImageBitmap {
typedef (CanvasImageSource or
Blob or
- ImageData) ImageBitmapSource;
+ ImageData) ImageBitmapSource;
-enum ImageOrientation { "none", "flipY" };
-enum PremultiplyAlpha { "none", "premultiply", "default" };
-enum ColorSpaceConversion { "none", "default" };
-enum ResizeQuality { "pixelated", "low", "medium", "high" };
+enum ImageOrientation { "none", "flipY" };
+enum PremultiplyAlpha { "none", "premultiply", "default" };
+enum ColorSpaceConversion { "none", "default" };
+enum ResizeQuality { "pixelated", "low", "medium", "high" };
-dictionary ImageBitmapOptions {
+dictionary ImageBitmapOptions {
ImageOrientation imageOrientation = "none";
PremultiplyAlpha premultiplyAlpha = "default";
ColorSpaceConversion colorSpaceConversion = "default";
@@ -96450,9 +96450,9 @@ loadMySprites().then(runDemo);
Some objects include the AnimationFrameProvider
interface mixin.
- callback FrameRequestCallback = undefined (DOMHighResTimeStamp time);
+ callback FrameRequestCallback = undefined (DOMHighResTimeStamp time);
-interface mixin AnimationFrameProvider {
+interface mixin AnimationFrameProvider {
unsigned long requestAnimationFrame(FrameRequestCallback callback);
undefined cancelAnimationFrame(unsigned long handle);
};
@@ -96776,7 +96776,7 @@ source.addEventListener('remove', removeHandler, false);
The EventSource
interface
[Exposed=(Window,Worker)]
-interface EventSource : EventTarget {
+interface EventSource : EventTarget {
constructor(USVString url, optional EventSourceInit eventSourceInitDict = {});
readonly attribute USVString url;
@@ -96795,7 +96795,7 @@ interface EventSource : EventTarget {
undefined close();
};
-dictionary EventSourceInit {
+dictionary EventSourceInit {
boolean withCredentials = false;
};
@@ -97579,9 +97579,9 @@ data: test
The WebSocket
interface
- enum BinaryType { "blob", "arraybuffer" };
+ enum BinaryType { "blob", "arraybuffer" };
[Exposed=(Window,Worker)]
-interface WebSocket : EventTarget {
+interface WebSocket : EventTarget {
constructor(USVString url, optional (DOMString or sequence<DOMString>) protocols = []);
readonly attribute USVString url;
@@ -98299,7 +98299,7 @@ socket.onopen = function () {
data-x="event-close">close
events:
[Exposed=(Window,Worker)]
-interface CloseEvent : Event {
+interface CloseEvent : Event {
constructor(DOMString type, optional CloseEventInit eventInitDict = {});
readonly attribute boolean wasClean;
@@ -98307,7 +98307,7 @@ interface CloseEvent : Event {
readonly attribute USVString reason;
};
-dictionary CloseEventInit : EventInit {
+dictionary CloseEventInit : EventInit {
boolean wasClean = false;
unsigned short code = 0;
USVString reason = "";
@@ -98891,7 +98891,7 @@ function handleMessage(event) {
Message channels
[Exposed=(Window,Worker)]
-interface MessageChannel {
+interface MessageChannel {
constructor();
readonly attribute MessagePort port1;
@@ -98958,7 +98958,7 @@ interface MessageChannel {
and vice versa.
[Exposed=(Window,Worker,AudioWorklet), Transferable]
-interface MessagePort : EventTarget {
+interface MessagePort : EventTarget {
undefined postMessage(any message, sequence<object> transfer);
undefined postMessage(any message, optional PostMessageOptions options = {});
undefined start();
@@ -98969,7 +98969,7 @@ interface MessagePort : EventTarget {
attribute EventHandler onmessageerror;
};
-dictionary PostMessageOptions {
+dictionary PostMessageOptions {
sequence<object> transfer = [];
};
@@ -99319,7 +99319,7 @@ dictionary PostMessageOptions {
use the simple channel-based broadcast mechanism described in this section.
[Exposed=(Window,Worker)]
-interface BroadcastChannel : EventTarget {
+interface BroadcastChannel : EventTarget {
constructor(DOMString name);
readonly attribute DOMString name;
@@ -99949,7 +99949,7 @@ worker.port.postMessage({ foo: 'structured', bar: ['data', 'also', 'possible']})
The WorkerGlobalScope
common interface
[Exposed=Worker]
-interface WorkerGlobalScope : EventTarget {
+interface WorkerGlobalScope : EventTarget {
readonly attribute WorkerGlobalScope self;
readonly attribute WorkerLocation location;
readonly attribute WorkerNavigator navigator;
@@ -100071,7 +100071,7 @@ interface WorkerGlobalScope : EventTarget {
Dedicated workers and the DedicatedWorkerGlobalScope
interface
[Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
-interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
+interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
[Replaceable] readonly attribute DOMString name;
undefined postMessage(any message, sequence<object> transfer);
@@ -100169,7 +100169,7 @@ interface DedicatedWorkerGlobalScope : WorkerGlobalScope
Shared workers and the SharedWorkerGlobalScope
interface
[Global=(Worker,SharedWorker),Exposed=SharedWorker]
-interface SharedWorkerGlobalScope : WorkerGlobalScope {
+interface SharedWorkerGlobalScope : WorkerGlobalScope {
[Replaceable] readonly attribute DOMString name;
undefined close();
@@ -100701,7 +100701,7 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {
AbstractWorker
mixin
Properties present on both Worker
and SharedWorker
- interface mixin AbstractWorker {
+ interface mixin AbstractWorker {
attribute EventHandler onerror;
};
@@ -100824,7 +100824,7 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {
Dedicated workers and the Worker
interface
[Exposed=(Window,DedicatedWorker,SharedWorker)]
-interface Worker : EventTarget {
+interface Worker : EventTarget {
constructor(USVString scriptURL, optional WorkerOptions options = {});
undefined terminate();
@@ -100835,13 +100835,13 @@ interface Worker : EventTarget {
attribute EventHandler onmessageerror;
};
-dictionary WorkerOptions {
+dictionary WorkerOptions {
WorkerType type = "classic";
RequestCredentials credentials = "same-origin"; // credentials is only used if type is "module"
DOMString name = "";
};
-enum WorkerType { "classic", "module" };
+enum WorkerType { "classic", "module" };
Worker includes AbstractWorker;
@@ -100971,7 +100971,7 @@ enum WorkerType { "classic", "module" };
Shared workers and the SharedWorker
interface
[Exposed=Window]
-interface SharedWorker : EventTarget {
+interface SharedWorker : EventTarget {
constructor(USVString scriptURL, optional (DOMString or WorkerOptions) options = {});
readonly attribute MessagePort port;
@@ -101157,7 +101157,7 @@ interface SharedWorker : EventTarget {
Concurrent hardware capabilities
- interface mixin NavigatorConcurrentHardware {
+ interface mixin NavigatorConcurrentHardware {
readonly attribute unsigned long long hardwareConcurrency;
};
@@ -101262,7 +101262,7 @@ interface SharedWorker : EventTarget {
[Exposed=Worker]
-interface WorkerNavigator {};
+interface WorkerNavigator {};
WorkerNavigator includes NavigatorID;
WorkerNavigator includes NavigatorLanguage;
WorkerNavigator includes NavigatorOnLine;
@@ -101285,7 +101285,7 @@ interface WorkerNavigator {};
The WorkerLocation
interface
[Exposed=Worker]
-interface WorkerLocation {
+interface WorkerLocation {
stringifier readonly attribute USVString href;
readonly attribute USVString origin;
readonly attribute USVString protocol;
@@ -102595,7 +102595,7 @@ interface Storage {
The sessionStorage
getter
- interface mixin WindowSessionStorage {
+ interface mixin WindowSessionStorage {
readonly attribute Storage sessionStorage;
};
Window includes WindowSessionStorage;
@@ -102654,7 +102654,7 @@ interface Storage {
The localStorage
getter
- interface mixin WindowLocalStorage {
+ interface mixin WindowLocalStorage {
readonly attribute Storage localStorage;
};
Window includes WindowLocalStorage;
@@ -102711,7 +102711,7 @@ interface Storage {
The StorageEvent
interface
[Exposed=Window]
-interface StorageEvent : Event {
+interface StorageEvent : Event {
constructor(DOMString type, optional StorageEventInit eventInitDict = {});
readonly attribute DOMString? key;
@@ -102723,7 +102723,7 @@ interface StorageEvent : Event {
undefined 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 {
+dictionary StorageEventInit : EventInit {
DOMString? key = null;
DOMString? oldValue = null;
DOMString? newValue = null;
@@ -117372,7 +117372,7 @@ if (s = prompt('What is your name?')) {
interface.
[Exposed=Window]
-interface HTMLMarqueeElement : HTMLElement {
+interface HTMLMarqueeElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString behavior;
@@ -117563,7 +117563,7 @@ interface HTMLMarqueeElement : HTMLElement {
interface.
[Exposed=Window]
-interface HTMLFrameSetElement : HTMLElement {
+interface HTMLFrameSetElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString cols;
@@ -117637,7 +117637,7 @@ interface HTMLFrameSetElement : HTMLElement {
The frame
element must implement the HTMLFrameElement
interface.
[Exposed=Window]
-interface HTMLFrameElement : HTMLElement {
+interface HTMLFrameElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute DOMString name;
@@ -117828,7 +117828,7 @@ interface HTMLFrameElement : HTMLElement {
interface.
[Exposed=Window]
-interface HTMLDirectoryElement : HTMLElement {
+interface HTMLDirectoryElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute boolean compact;
@@ -117875,7 +117875,7 @@ interface HTMLDirectoryElement : HTMLElement {
The font
element must implement the HTMLFontElement
interface.
[Exposed=Window]
-interface HTMLFontElement : HTMLElement {
+interface HTMLFontElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute [LegacyNullToEmptyString] DOMString color;
@@ -118489,7 +118489,7 @@ interface HTMLFontElement : HTMLElement {
interface:
[Exposed=Window]
-interface External {
+interface External {
undefined AddSearchProvider();
undefined IsSearchProviderInstalled();
};