From f101f1e3f6e7b2885ead06d26b1984fc316c20ea Mon Sep 17 00:00:00 2001 From: Pierre-Marie Dartus Date: Tue, 29 Oct 2019 20:41:12 +0100 Subject: [PATCH] Update remaining [HTMLConstructor] extended attributes This fixes all the [HTMLConstructor] extended attribute usage that was missed in e38aa416a71dc1e2e78c83f4ef33294e21d40e66. --- source | 46 ++++++++++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/source b/source index d6bcb58f4b3..28794670ecf 100644 --- a/source +++ b/source @@ -18499,9 +18499,10 @@ be cowed by the possibility.</blockquote>
type
DOM interface:
-
[Exposed=Window,
- HTMLConstructor]
+
[Exposed=Window]
 interface HTMLOListElement : HTMLElement {
+  [HTMLConstructor] constructor();
+
   [CEReactions] attribute boolean reversed;
   [CEReactions] attribute long start;
   [CEReactions] attribute DOMString type;
@@ -18739,9 +18740,9 @@ interface HTMLUListElement : HTMLElement {
    
Global attributes
DOM interface:
-
[Exposed=Window,
- HTMLConstructor]
+
[Exposed=Window]
 interface HTMLMenuElement : HTMLElement {
+  [HTMLConstructor] constructor();
 };
Uses HTMLMenuElement.
@@ -18785,9 +18786,10 @@ interface HTMLMenuElement : HTMLElement {
If the element is not a child of an ul or menu element: value
DOM interface:
-
[Exposed=Window,
- HTMLConstructor]
+
[Exposed=Window]
 interface HTMLLIElement : HTMLElement {
+  [HTMLConstructor] constructor();
+
   [CEReactions] attribute long value;
 };
@@ -21296,9 +21298,10 @@ interface HTMLDataElement : HTMLElement {
datetime
DOM interface:
-
[Exposed=Window,
- HTMLConstructor]
+
[Exposed=Window]
 interface HTMLTimeElement : HTMLElement {
+  [HTMLConstructor] constructor();
+
   [CEReactions] attribute DOMString dateTime;
 };
@@ -26148,9 +26151,10 @@ interface HTMLSourceElement : HTMLElement {
DOM interface:
[Exposed=Window,
- HTMLConstructor,
  NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
 interface HTMLImageElement : HTMLElement {
+  [HTMLConstructor] constructor();
+
   [CEReactions] attribute DOMString alt;
   [CEReactions] attribute USVString src;
   [CEReactions] attribute USVString srcset;
@@ -31852,9 +31856,10 @@ interface HTMLParamElement : HTMLElement {
    
height
DOM interface:
-
[Exposed=Window,
- HTMLConstructor]
+    
[Exposed=Window]
 interface HTMLVideoElement : HTMLMediaElement {
+  [HTMLConstructor] constructor();
+
   [CEReactions] attribute unsigned long width;
   [CEReactions] attribute unsigned long height;
   readonly attribute unsigned long videoWidth;
@@ -32242,9 +32247,10 @@ zero or more track elements, then
    
DOM interface:
[Exposed=Window,
- HTMLConstructor,
  NamedConstructor=Audio(optional DOMString src)]
-interface HTMLAudioElement : HTMLMediaElement {};
+interface HTMLAudioElement : HTMLMediaElement { + [HTMLConstructor] constructor(); +};
Uses HTMLAudioElement.
@@ -43198,9 +43204,10 @@ interface HTMLTableCellElement : HTMLElement {
[Exposed=Window,
  OverrideBuiltins,
- LegacyUnenumerableNamedProperties,
- HTMLConstructor]
+ LegacyUnenumerableNamedProperties]
 interface HTMLFormElement : HTMLElement {
+  [HTMLConstructor] constructor();
+
   [CEReactions] attribute DOMString acceptCharset;
   [CEReactions] attribute USVString action;
   [CEReactions] attribute DOMString autocomplete;
@@ -50987,9 +50994,10 @@ interface HTMLOptGroupElement : HTMLElement {
    
DOM interface:
[Exposed=Window,
- HTMLConstructor,
  NamedConstructor=Option(optional DOMString text = "", optional DOMString value, optional boolean defaultSelected = false, optional boolean selected = false)]
 interface HTMLOptionElement : HTMLElement {
+  [HTMLConstructor] constructor();
+
   [CEReactions] attribute boolean disabled;
   readonly attribute HTMLFormElement? form;
   [CEReactions] attribute DOMString label;
@@ -59928,9 +59936,10 @@ dictionary AssignedNodesOptions {
    
typedef (CanvasRenderingContext2D or ImageBitmapRenderingContext or WebGLRenderingContext or WebGL2RenderingContext) RenderingContext;
 
-[Exposed=Window,
- HTMLConstructor]
+[Exposed=Window]
 interface HTMLCanvasElement : HTMLElement {
+  [HTMLConstructor] constructor();
+
   [CEReactions] attribute unsigned long width;
   [CEReactions] attribute unsigned long height;
 
@@ -124776,6 +124785,7 @@ INSERT INTERFACES HERE
   Philip TAYLOR,
   Philippe De Ryck,
   Pierre-Arnaud Allumé,
+  Pierre-Marie Dartus,
 ‏  Pooja Sanklecha,
   Prashant Hiremath,
   Prashanth Chandra,