From 6f767cc9c80aa6035f1fe5b5f744c8ccea6db819 Mon Sep 17 00:00:00 2001 From: Dominique Hazael-Massieux Date: Tue, 29 Sep 2020 14:11:04 +0200 Subject: [PATCH] Set dfn-type on definitions in IDL fragments Follow up to https://github.com/whatwg/html/pull/5694 https://github.com/whatwg/html/pull/5916 https://github.com/whatwg/html/pull/5956 setting dfn types on items defined in IDL fragments --- source | 470 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 235 insertions(+), 235 deletions(-) diff --git a/source b/source index 9ea4370ceca..f238a813079 100644 --- a/source +++ b/source @@ -7255,7 +7255,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
[Exposed=Window,
  LegacyUnenumerableNamedProperties]
-interface HTMLAllCollection {
+interface HTMLAllCollection {
   readonly attribute unsigned long length;
   getter Element (unsigned long index);
   getter (HTMLCollection or Element)? namedItem(DOMString name);
@@ -7435,13 +7435,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;
 };
@@ -7570,7 +7570,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);
@@ -7755,7 +7755,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);
@@ -9045,8 +9045,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 {
@@ -9987,7 +9987,7 @@ partial interface Document {
   the HTMLElement interface.

[Exposed=Window]
-interface HTMLElement : Element {
+interface HTMLElement : Element {
   [HTMLConstructor] constructor();
 
   // metadata attributes
@@ -10016,7 +10016,7 @@ interface HTMLElement : Element {
 HTMLElement includes HTMLOrSVGElement;
 
 [Exposed=Window]
-interface HTMLUnknownElement : HTMLElement {
+interface HTMLUnknownElement : HTMLElement {
   // Note: intentionally no [HTMLConstructor]
 };
@@ -10065,7 +10065,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]
 
@@ -12264,7 +12264,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);
@@ -12732,7 +12732,7 @@ interface DOMStringMap {
    
DOM interface:
[Exposed=Window]
-interface HTMLHtmlElement : HTMLElement {
+interface HTMLHtmlElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -12817,7 +12817,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();
 };
@@ -12882,7 +12882,7 @@ interface HTMLHeadElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLTitleElement : HTMLElement {
+interface HTMLTitleElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString text;
@@ -12979,7 +12979,7 @@ interface HTMLTitleElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLBaseElement : HTMLElement {
+interface HTMLBaseElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute USVString href;
@@ -13180,7 +13180,7 @@ interface HTMLBaseElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLLinkElement : HTMLElement {
+interface HTMLLinkElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute USVString href;
@@ -13840,7 +13840,7 @@ interface HTMLLinkElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLMetaElement : HTMLElement {
+interface HTMLMetaElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString name;
@@ -15007,7 +15007,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;
@@ -15362,7 +15362,7 @@ interface HTMLStyleElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLBodyElement : HTMLElement {
+interface HTMLBodyElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -16102,7 +16102,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
@@ -17814,7 +17814,7 @@ Space is not the only void
DOM interface:
[Exposed=Window]
-interface HTMLParagraphElement : HTMLElement {
+interface HTMLParagraphElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -17961,7 +17961,7 @@ and is further discussed below.</div>
DOM interface:
[Exposed=Window]
-interface HTMLHRElement : HTMLElement {
+interface HTMLHRElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -18073,7 +18073,7 @@ of Gralmond's winters.</p>
DOM interface:
[Exposed=Window]
-interface HTMLPreElement : HTMLElement {
+interface HTMLPreElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -18194,7 +18194,7 @@ a friend lost to the
    
DOM interface:
[Exposed=Window]
-interface HTMLQuoteElement : HTMLElement {
+interface HTMLQuoteElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute USVString cite;
@@ -18390,7 +18390,7 @@ be cowed by the possibility.</blockquote>
    
DOM interface:
[Exposed=Window]
-interface HTMLOListElement : HTMLElement {
+interface HTMLOListElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute boolean reversed;
@@ -18578,7 +18578,7 @@ I first lived there):</p>
    
DOM interface:
[Exposed=Window]
-interface HTMLUListElement : HTMLElement {
+interface HTMLUListElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -18644,7 +18644,7 @@ interface HTMLUListElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLMenuElement : HTMLElement {
+interface HTMLMenuElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -18696,7 +18696,7 @@ interface HTMLMenuElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLLIElement : HTMLElement {
+interface HTMLLIElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute long value;
@@ -18876,7 +18876,7 @@ interface HTMLLIElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLDListElement : HTMLElement {
+interface HTMLDListElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -19587,7 +19587,7 @@ included with Exhibit B.
    
DOM interface:
[Exposed=Window]
-interface HTMLDivElement : HTMLElement {
+interface HTMLDivElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -19675,7 +19675,7 @@ interface HTMLDivElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLAnchorElement : HTMLElement {
+interface HTMLAnchorElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString target;
@@ -21231,7 +21231,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;
@@ -21314,7 +21314,7 @@ interface HTMLDataElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLTimeElement : HTMLElement {
+interface HTMLTimeElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString dateTime;
@@ -22435,7 +22435,7 @@ wormhole connection.</mark></p>
DOM interface:
[Exposed=Window]
-interface HTMLSpanElement : HTMLElement {
+interface HTMLSpanElement : HTMLElement {
   [HTMLConstructor] constructor();
 };
@@ -22485,7 +22485,7 @@ interface HTMLSpanElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLBRElement : HTMLElement {
+interface HTMLBRElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -22895,7 +22895,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;
@@ -25776,7 +25776,7 @@ document.body.appendChild(wbr);
HTMLModElement interface:

[Exposed=Window]
-interface HTMLModElement : HTMLElement {
+interface HTMLModElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute USVString cite;
@@ -25967,7 +25967,7 @@ interface HTMLModElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLPictureElement : HTMLElement {
+interface HTMLPictureElement : HTMLElement {
   [HTMLConstructor] constructor();
 };
@@ -26014,7 +26014,7 @@ interface HTMLPictureElement : HTMLElement {
DOM interface:
[Exposed=Window]
-interface HTMLSourceElement : HTMLElement {
+interface HTMLSourceElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute USVString src;
@@ -26283,7 +26283,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;
@@ -29967,7 +29967,7 @@ href="?audio">audio</a> test instead.)</p>
DOM interface:
[Exposed=Window]
-interface HTMLIFrameElement : HTMLElement {
+interface HTMLIFrameElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute USVString src;
@@ -30740,7 +30740,7 @@ interface HTMLIFrameElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLEmbedElement : HTMLElement {
+interface HTMLEmbedElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute USVString src;
@@ -31154,7 +31154,7 @@ interface HTMLEmbedElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLObjectElement : HTMLElement {
+interface HTMLObjectElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute USVString data;
@@ -31820,7 +31820,7 @@ interface HTMLObjectElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLParamElement : HTMLElement {
+interface HTMLParamElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString name;
@@ -31934,7 +31934,7 @@ interface HTMLParamElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLVideoElement : HTMLMediaElement {
+interface HTMLVideoElement : HTMLMediaElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute unsigned long width;
@@ -32322,7 +32322,7 @@ zero or more track elements, then
    
[Exposed=Window,
  LegacyFactoryFunction=Audio(optional DOMString src)]
-interface HTMLAudioElement : HTMLMediaElement {
+interface HTMLAudioElement : HTMLMediaElement {
   [HTMLConstructor] constructor();
 };
@@ -32465,7 +32465,7 @@ interface HTMLAudioElement : HTMLMediaElement {
DOM interface:
[Exposed=Window]
-interface HTMLTrackElement : HTMLElement {
+interface HTMLTrackElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString kind;
@@ -32706,11 +32706,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;
@@ -32871,7 +32871,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;
@@ -35857,7 +35857,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);
@@ -35868,7 +35868,7 @@ interface AudioTrackList : EventTarget {
 };
 
 [Exposed=Window]
-interface AudioTrack {
+interface AudioTrack {
   readonly attribute DOMString id;
   readonly attribute DOMString kind;
   readonly attribute DOMString label;
@@ -35877,7 +35877,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);
@@ -35889,7 +35889,7 @@ interface VideoTrackList : EventTarget {
 };
 
 [Exposed=Window]
-interface VideoTrack {
+interface VideoTrack {
   readonly attribute DOMString id;
   readonly attribute DOMString kind;
   readonly attribute DOMString label;
@@ -37103,7 +37103,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);
@@ -37167,11 +37167,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;
@@ -37500,7 +37500,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);
@@ -37554,7 +37554,7 @@ interface TextTrackCueList {
   
[Exposed=Window]
-interface TextTrackCue : EventTarget {
+interface TextTrackCue : EventTarget {
   readonly attribute TextTrack? track;
 
   attribute DOMString id;
@@ -37938,7 +37938,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);
@@ -38023,13 +38023,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;
 };
@@ -38657,7 +38657,7 @@ dictionary TrackEventInit : EventInit {
DOM interface:
[Exposed=Window]
-interface HTMLMapElement : HTMLElement {
+interface HTMLMapElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString name;
@@ -38768,7 +38768,7 @@ interface HTMLMapElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLAreaElement : HTMLElement {
+interface HTMLAreaElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString alt;
@@ -39422,7 +39422,7 @@ interface HTMLAreaElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLTableElement : HTMLElement {
+interface HTMLTableElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute HTMLTableCaptionElement? caption;
@@ -40078,7 +40078,7 @@ side in the right column.</p>
    
DOM interface:
[Exposed=Window]
-interface HTMLTableCaptionElement : HTMLElement {
+interface HTMLTableCaptionElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   // also has obsolete members
@@ -40175,7 +40175,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;
@@ -40273,7 +40273,7 @@ interface HTMLTableColElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLTableSectionElement : HTMLElement {
+interface HTMLTableSectionElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [SameObject] readonly attribute HTMLCollection rows;
@@ -40516,7 +40516,7 @@ interface HTMLTableSectionElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLTableRowElement : HTMLElement {
+interface HTMLTableRowElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   readonly attribute long rowIndex;
@@ -40681,7 +40681,7 @@ interface HTMLTableRowElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLTableCellElement : HTMLElement {
+interface HTMLTableCellElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute unsigned long colSpan;
@@ -42721,7 +42721,7 @@ interface HTMLTableCellElement : HTMLElement {
     
[Exposed=Window,
  LegacyOverrideBuiltIns,
  LegacyUnenumerableNamedProperties]
-interface HTMLFormElement : HTMLElement {
+interface HTMLFormElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString acceptCharset;
@@ -43158,7 +43158,7 @@ interface HTMLFormElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLLabelElement : HTMLElement {
+interface HTMLLabelElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   readonly attribute HTMLFormElement? form;
@@ -43501,7 +43501,7 @@ interface HTMLLabelElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLInputElement : HTMLElement {
+interface HTMLInputElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString accept;
@@ -49682,7 +49682,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;
@@ -49883,7 +49883,7 @@ interface HTMLButtonElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLSelectElement : HTMLElement {
+interface HTMLSelectElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString autocomplete;
@@ -50418,7 +50418,7 @@ interface HTMLSelectElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLDataListElement : HTMLElement {
+interface HTMLDataListElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [SameObject] readonly attribute HTMLCollection options;
@@ -50524,7 +50524,7 @@ interface HTMLDataListElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLOptGroupElement : HTMLElement {
+interface HTMLOptGroupElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute boolean disabled;
@@ -50632,7 +50632,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;
@@ -50906,7 +50906,7 @@ interface HTMLOptionElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLTextAreaElement : HTMLElement {
+interface HTMLTextAreaElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString autocomplete;
@@ -51400,7 +51400,7 @@ Daddy"></textarea>
DOM interface:
[Exposed=Window]
-interface HTMLOutputElement : HTMLElement {
+interface HTMLOutputElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [SameObject, PutForwards=value] readonly attribute DOMTokenList htmlFor;
@@ -51595,7 +51595,7 @@ interface HTMLOutputElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLProgressElement : HTMLElement {
+interface HTMLProgressElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute double value;
@@ -51774,7 +51774,7 @@ interface HTMLProgressElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLMeterElement : HTMLElement {
+interface HTMLMeterElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute double value;
@@ -52153,7 +52153,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;
@@ -52360,7 +52360,7 @@ interface HTMLFieldSetElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLLegendElement : HTMLElement {
+interface HTMLLegendElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   readonly attribute HTMLFormElement? form;
@@ -55110,7 +55110,7 @@ MIT Room 32-G524
   data-x="dom-SelectionMode-start">start", "end",
   "preserve" (default).

-
enum SelectionMode {
+  
enum SelectionMode {
   "select",
   "start",
   "end",
@@ -55577,7 +55577,7 @@ control.setSelectionRange(oldStart + prefix.length, oldEnd + prefix.length, oldD
   target element. This object is live.

[Exposed=Window]
-interface ValidityState {
+interface ValidityState {
   readonly attribute boolean valueMissing;
   readonly attribute boolean typeMismatch;
   readonly attribute boolean patternMismatch;
@@ -56620,13 +56620,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;
 };
@@ -56647,13 +56647,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;
 };
@@ -56724,7 +56724,7 @@ dictionary FormDataEventInit : EventInit {
DOM interface:
[Exposed=Window]
-interface HTMLDetailsElement : HTMLElement {
+interface HTMLDetailsElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute boolean open;
@@ -57220,7 +57220,7 @@ interface HTMLDetailsElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLDialogElement : HTMLElement {
+interface HTMLDialogElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute boolean open;
@@ -57596,7 +57596,7 @@ interface HTMLDialogElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLScriptElement : HTMLElement {
+interface HTMLScriptElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute USVString src;
@@ -59043,7 +59043,7 @@ not-slash     = %x0000-002E / %x0030-10FFFF
    
DOM interface:
[Exposed=Window]
-interface HTMLTemplateElement : HTMLElement {
+interface HTMLTemplateElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   readonly attribute DocumentFragment content;
@@ -59315,7 +59315,7 @@ interface HTMLTemplateElement : HTMLElement {
    
DOM interface:
[Exposed=Window]
-interface HTMLSlotElement : HTMLElement {
+interface HTMLSlotElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString name;
@@ -59323,7 +59323,7 @@ interface HTMLSlotElement : HTMLElement {
   sequence<Element> assignedElements(optional AssignedNodesOptions options = {});
 };
 
-dictionary AssignedNodesOptions {
+dictionary AssignedNodesOptions {
   boolean flatten = false;
 };
@@ -59425,10 +59425,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;
@@ -59441,7 +59441,7 @@ interface HTMLCanvasElement : HTMLElement {
   OffscreenCanvas transferControlToOffscreen();
 };
 
-callback BlobCallback = undefined (Blob? blob);
+callback BlobCallback = undefined (Blob? blob);
Uses HTMLCanvasElement.
@@ -59916,25 +59916,25 @@ 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 CanvasFillRule { "nonzero", "evenodd" };
+enum CanvasFillRule { "nonzero", "evenodd" };
 
-dictionary CanvasRenderingContext2DSettings {
+dictionary CanvasRenderingContext2DSettings {
   boolean alpha = true;
   boolean desynchronized = false;
 };
 
-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;
 
@@ -59957,13 +59957,13 @@ 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
 };
 
-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);
@@ -59981,13 +59981,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)
@@ -60002,7 +60002,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)
@@ -60015,7 +60015,7 @@ interface mixin CanvasFillStrokeStyles {
 -->
 };
 
-interface mixin CanvasShadowStyles {
+interface mixin CanvasShadowStyles {
   // shadows
   attribute unrestricted double shadowOffsetX; // (default 0)
   attribute unrestricted double shadowOffsetY; // (default 0)
@@ -60023,19 +60023,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");
@@ -60050,28 +60050,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(long sw, long sh);
   ImageData createImageData(ImageData imagedata);
@@ -60080,13 +60080,13 @@ interface mixin CanvasImageData {
   undefined 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" };
+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 {
+interface mixin CanvasPathDrawingStyles {
   // line caps/joins
   attribute unrestricted double lineWidth; // (default 1)
   attribute CanvasLineCap lineCap; // (default "butt")
@@ -60099,7 +60099,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")
@@ -60107,7 +60107,7 @@ interface mixin CanvasTextDrawingStyles {
   attribute CanvasDirection direction; // (default: "inherit")
 };
 
-interface mixin CanvasPath {
+interface mixin CanvasPath {
   // shared path API methods
   undefined closePath();
   undefined moveTo(unrestricted double x, unrestricted double y);
@@ -60121,19 +60121,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;
@@ -60153,7 +60153,7 @@ interface TextMetrics {
 
 [Exposed=(Window,Worker),
  Serializable]
-interface ImageData {
+interface ImageData {
   constructor(unsigned long sw, unsigned long sh);
   constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh);
 
@@ -60163,7 +60163,7 @@ interface ImageData {
 };
 
 [Exposed=(Window,Worker)]
-interface Path2D {
+interface Path2D {
   constructor(optional (Path2D or DOMString) path);
 
   undefined addPath(Path2D path, optional DOMMatrix2DInit transform = {});
@@ -64620,12 +64620,12 @@ function AddCloud(data, x, y) { ... }
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;
 };
@@ -64837,17 +64837,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;
@@ -65246,7 +65246,7 @@ interface OffscreenCanvas : EventTarget {
   
The offscreen 2D rendering context
[Exposed=(Window,Worker)]
-interface OffscreenCanvasRenderingContext2D {
+interface OffscreenCanvasRenderingContext2D {
   undefined commit();
   readonly attribute OffscreenCanvas canvas;
 };
@@ -66394,16 +66394,16 @@ document.body.append(parent);
   that 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;
 };
@@ -67288,7 +67288,7 @@ customElements.define("x-foo", class extends HTMLElement {
[Exposed=Window]
-interface ElementInternals {
+interface ElementInternals {
   // Form-associated custom elements
 
   undefined setFormValue((File or USVString or FormData)? value,
@@ -67310,7 +67310,7 @@ interface ElementInternals {
 
 ElementInternals includes ARIAMixin;
 
-dictionary ValidityStateFlags {
+dictionary ValidityStateFlags {
   boolean valueMissing = false;
   boolean typeMismatch = false;
   boolean patternMismatch = false;
@@ -73677,7 +73677,7 @@ END:VCARD

Focus management APIs

-
dictionary FocusOptions {
+  
dictionary FocusOptions {
   boolean preventScroll = false;
 };
@@ -74272,7 +74272,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;
@@ -75446,7 +75446,7 @@ body { display:none }
   underlies a drag-and-drop operation.

[Exposed=Window]
-interface DataTransfer {
+interface DataTransfer {
   constructor();
 
   attribute DOMString dropEffect;
@@ -75821,7 +75821,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);
@@ -76192,13 +76192,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;
 };
@@ -78671,7 +78671,7 @@ interface Window : EventTarget { Window includes GlobalEventHandlers; Window includes WindowEventHandlers; -dictionary WindowPostMessageOptions : PostMessageOptions { +dictionary WindowPostMessageOptions : PostMessageOptions { USVString targetOrigin = "/"; };
@@ -79397,7 +79397,7 @@ dictionary WindowPostMessageOptions : PostMessageOptions

Each interface element is represented by a BarProp object:

[Exposed=Window]
-interface BarProp {
+interface BarProp {
   readonly attribute boolean visible;
 };
@@ -81499,7 +81499,7 @@ interface BarProp {

The History interface

-
enum ScrollRestoration { "auto", "manual" };
+  
enum ScrollRestoration { "auto", "manual" };
 
 [Exposed=Window]
 interface History {
@@ -82165,7 +82165,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;
@@ -85013,13 +85013,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;
 };
@@ -85046,14 +85046,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 = "";
 };
@@ -85092,13 +85092,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;
 };
@@ -85375,7 +85375,7 @@ dictionary PageTransitionEventInit : EventInit {
The BeforeUnloadEvent interface
[Exposed=Window]
-interface BeforeUnloadEvent : Event {
+interface BeforeUnloadEvent : Event {
   attribute DOMString returnValue;
 };
@@ -87720,7 +87720,7 @@ NETWORK:
[SecureContext,
  Exposed=Window]
-interface ApplicationCache : EventTarget {
+interface ApplicationCache : EventTarget {
 
   // update status
   const unsigned short UNCACHED = 0;
@@ -87946,7 +87946,7 @@ interface ApplicationCache : EventTarget {
 
   
 
-  
interface mixin NavigatorOnLine {
+  
interface mixin NavigatorOnLine {
   readonly attribute boolean onLine;
 };
@@ -90640,7 +90640,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;
@@ -90650,7 +90650,7 @@ interface ErrorEvent : Event {
   readonly attribute any error;
 };
 
-dictionary ErrorEventInit : EventInit {
+dictionary ErrorEventInit : EventInit {
   DOMString message = "";
   USVString filename = "";
   unsigned long lineno = 0;
@@ -90748,14 +90748,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;
 };
@@ -92825,8 +92825,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.

@@ -92862,8 +92862,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) => { … };
@@ -92873,8 +92873,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;
@@ -93285,7 +93285,7 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEvent
IDL definitions
-
interface mixin GlobalEventHandlers {
+  
interface mixin GlobalEventHandlers {
   attribute EventHandler onabort;
   attribute EventHandler onauxclick;
   attribute EventHandler onblur;
@@ -93354,7 +93354,7 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEvent
   attribute EventHandler onwheel;
 };
 
-interface mixin WindowEventHandlers {
+interface mixin WindowEventHandlers {
   attribute EventHandler onafterprint;
   attribute EventHandler onbeforeprint;
   attribute OnBeforeUnloadEventHandler onbeforeunload;
@@ -93373,7 +93373,7 @@ interface mixin WindowEventHandlers {
   attribute EventHandler onunload;
 };
 
-interface mixin DocumentAndElementEventHandlers {
+interface mixin DocumentAndElementEventHandlers {
   attribute EventHandler oncopy;
   attribute EventHandler oncut;
   attribute EventHandler onpaste;
@@ -93436,9 +93436,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;
@@ -93994,13 +93994,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",
@@ -94782,7 +94782,7 @@ function sendData(data) {
   
 
   
[Exposed=Window]
-interface Navigator {
+interface Navigator {
   // objects implementing this interface also implement the interfaces given below
 };
 Navigator includes NavigatorID;
@@ -94803,7 +94803,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;
@@ -94981,7 +94981,7 @@ interface Navigator {
 
   
Language preferences
-
interface mixin NavigatorLanguage {
+  
interface mixin NavigatorLanguage {
   readonly attribute DOMString language;
   readonly attribute FrozenArray<DOMString> languages;
 };
@@ -95073,7 +95073,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);
 };
@@ -95328,7 +95328,7 @@ interface Navigator {
Cookies
-
interface mixin NavigatorCookies {
+  
interface mixin NavigatorCookies {
   readonly attribute boolean cookieEnabled;
 };
@@ -95353,7 +95353,7 @@ interface Navigator {
Plugins
-
interface mixin NavigatorPlugins {
+  
interface mixin NavigatorPlugins {
   [SameObject] readonly attribute PluginArray plugins;
   [SameObject] readonly attribute MimeTypeArray mimeTypes;
   boolean javaEnabled();
@@ -95361,7 +95361,7 @@ interface Navigator {
 
 [Exposed=Window,
  LegacyUnenumerableNamedProperties]
-interface PluginArray {
+interface PluginArray {
   undefined refresh(optional boolean reload = false);
   readonly attribute unsigned long length;
   getter Plugin? item(unsigned long index);
@@ -95370,7 +95370,7 @@ interface PluginArray {
 
 [Exposed=Window,
  LegacyUnenumerableNamedProperties]
-interface MimeTypeArray {
+interface MimeTypeArray {
   readonly attribute unsigned long length;
   getter MimeType? item(unsigned long index);
   getter MimeType? namedItem(DOMString name);
@@ -95388,7 +95388,7 @@ interface Plugin {
 };
 
 [Exposed=Window]
-interface MimeType {
+interface MimeType {
   readonly attribute DOMString type;
   readonly attribute DOMString description;
   readonly attribute DOMString suffixes; // comma-separated
@@ -95798,7 +95798,7 @@ interface MimeType {
   

Images

[Exposed=(Window,Worker), Serializable, Transferable]
-interface ImageBitmap {
+interface ImageBitmap {
   readonly attribute unsigned long width;
   readonly attribute unsigned long height;
   undefined close();
@@ -95806,14 +95806,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";
@@ -96405,9 +96405,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);
 };
@@ -96554,7 +96554,7 @@ self.onmessage = function(ev) {
   events:

[Exposed=(Window,Worker,AudioWorklet)]
-interface MessageEvent : Event {
+interface MessageEvent : Event {
   constructor(DOMString type, optional MessageEventInit eventInitDict = {});
 
   readonly attribute any data;
@@ -96566,7 +96566,7 @@ interface MessageEvent : Event {
   undefined 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 {
+dictionary MessageEventInit : EventInit {
   any data = null;
   USVString origin = "";
   DOMString lastEventId = "";
@@ -96574,7 +96574,7 @@ dictionary MessageEventInit : EventInit {
   sequence<MessagePort> ports = [];
 };
 
-typedef (WindowProxy or MessagePort or ServiceWorker) MessageEventSource;
+typedef (WindowProxy or MessagePort or ServiceWorker) MessageEventSource;
@@ -96727,7 +96727,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;
@@ -96746,7 +96746,7 @@ interface EventSource : EventTarget {
   undefined close();
 };
 
-dictionary EventSourceInit {
+dictionary EventSourceInit {
   boolean withCredentials = false;
 };
@@ -97527,9 +97527,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;
@@ -98236,7 +98236,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;
@@ -98244,7 +98244,7 @@ interface CloseEvent : Event {
   readonly attribute USVString reason;
 };
 
-dictionary CloseEventInit : EventInit {
+dictionary CloseEventInit : EventInit {
   boolean wasClean = false;
   unsigned short code = 0;
   USVString reason = "";
@@ -98825,7 +98825,7 @@ function handleMessage(event) {
   

Message channels

[Exposed=(Window,Worker)]
-interface MessageChannel {
+interface MessageChannel {
   constructor();
 
   readonly attribute MessagePort port1;
@@ -98890,7 +98890,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();
@@ -98901,7 +98901,7 @@ interface MessagePort : EventTarget {
   attribute EventHandler onmessageerror;
 };
 
-dictionary PostMessageOptions {
+dictionary PostMessageOptions {
   sequence<object> transfer = [];
 };
@@ -99249,7 +99249,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;
@@ -99877,7 +99877,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;
@@ -100007,7 +100007,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);
@@ -100107,7 +100107,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();
@@ -100639,7 +100639,7 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {
   AbstractWorker mixin
   
Properties present on both Worker and SharedWorker
-
interface mixin AbstractWorker {
+  
interface mixin AbstractWorker {
   attribute EventHandler onerror;
 };
@@ -100765,7 +100765,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();
@@ -100776,13 +100776,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;
@@ -100911,7 +100911,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;
@@ -101096,7 +101096,7 @@ interface SharedWorker : EventTarget {
 
   
 
-  
interface mixin NavigatorConcurrentHardware {
+  
interface mixin NavigatorConcurrentHardware {
   readonly attribute unsigned long long hardwareConcurrency;
 };
@@ -101201,7 +101201,7 @@ interface SharedWorker : EventTarget {
[Exposed=Worker]
-interface WorkerNavigator {};
+interface WorkerNavigator {};
 WorkerNavigator includes NavigatorID;
 WorkerNavigator includes NavigatorLanguage;
 WorkerNavigator includes NavigatorOnLine;
@@ -101224,7 +101224,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;
@@ -101689,7 +101689,7 @@ interface Storage {
 
   

The sessionStorage getter

-
interface mixin WindowSessionStorage {
+  
interface mixin WindowSessionStorage {
   readonly attribute Storage sessionStorage;
 };
 Window includes WindowSessionStorage;
@@ -101747,7 +101747,7 @@ interface Storage {

The localStorage getter

-
interface mixin WindowLocalStorage {
+  
interface mixin WindowLocalStorage {
   readonly attribute Storage localStorage;
 };
 Window includes WindowLocalStorage;
@@ -101803,7 +101803,7 @@ interface Storage {

The StorageEvent interface

[Exposed=Window]
-interface StorageEvent : Event {
+interface StorageEvent : Event {
   constructor(DOMString type, optional StorageEventInit eventInitDict = {});
 
   readonly attribute DOMString? key;
@@ -101815,7 +101815,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;
@@ -116340,7 +116340,7 @@ if (s = prompt('What is your name?')) {
   interface.

[Exposed=Window]
-interface HTMLMarqueeElement : HTMLElement {
+interface HTMLMarqueeElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString behavior;
@@ -116569,7 +116569,7 @@ interface HTMLMarqueeElement : HTMLElement {
   interface.

[Exposed=Window]
-interface HTMLFrameSetElement : HTMLElement {
+interface HTMLFrameSetElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute DOMString cols;
@@ -116643,7 +116643,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;
@@ -116827,7 +116827,7 @@ interface HTMLFrameElement : HTMLElement {
   interface.

[Exposed=Window]
-interface HTMLDirectoryElement : HTMLElement {
+interface HTMLDirectoryElement : HTMLElement {
   [HTMLConstructor] constructor();
 
   [CEReactions] attribute boolean compact;
@@ -116874,7 +116874,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;
@@ -117465,7 +117465,7 @@ interface HTMLFontElement : HTMLElement {
   interface:

[Exposed=Window]
-interface External {
+interface External {
   undefined AddSearchProvider();
   undefined IsSearchProviderInstalled();
 };