@@ -2910,8 +2910,9 @@ a [=static attribute=].
2910
2910
<code class="idl">name</code> attribute:
2911
2911
2912
2912
<pre highlight="webidl">
2913
- [Exposed=Window, Constructor ]
2913
+ [Exposed=Window]
2914
2914
interface Student {
2915
+ constructor();
2915
2916
attribute unsigned long id;
2916
2917
stringifier attribute DOMString name;
2917
2918
};
@@ -2935,8 +2936,9 @@ a [=static attribute=].
2935
2936
not specified in the IDL itself.
2936
2937
2937
2938
<pre highlight="webidl">
2938
- [Exposed=Window, Constructor ]
2939
+ [Exposed=Window]
2939
2940
interface Student {
2941
+ constructor();
2940
2942
attribute unsigned long id;
2941
2943
attribute DOMString? familyName;
2942
2944
attribute DOMString givenName;
@@ -5026,8 +5028,9 @@ No [=extended attributes=] are applicable to dictionaries.
5026
5028
consider the following [=IDL fragment=]:
5027
5029
5028
5030
<pre highlight="webidl">
5029
- [Exposed=Window, Constructor ]
5031
+ [Exposed=Window]
5030
5032
interface Point {
5033
+ constructor();
5031
5034
attribute double x;
5032
5035
attribute double y;
5033
5036
};
@@ -6799,7 +6802,7 @@ which form (or forms) it is in:
6799
6802
<dfn id="dfn-xattr-argument-list" for="extended attribute" export>takes an argument list</dfn>
6800
6803
</td>
6801
6804
<td>
6802
- <code>[Constructor(double x, double y)]</code>
6805
+ Not currently used; previously used by <code>[Constructor(double x, double y)]</code>
6803
6806
</td>
6804
6807
</tr>
6805
6808
<tr>
@@ -9193,8 +9196,9 @@ for the specific requirements that the use of
9193
9196
};
9194
9197
9195
9198
// Dimensions is available for use in workers and on the main thread.
9196
- [Exposed=(Window,Worker), Constructor(double width, double height) ]
9199
+ [Exposed=(Window,Worker)]
9197
9200
interface Dimensions {
9201
+ constructor(double width, double height);
9198
9202
readonly attribute double width;
9199
9203
readonly attribute double height;
9200
9204
};
@@ -9435,8 +9439,10 @@ See [[#namespace-object]] for details on how an interface is exposed on a namesp
9435
9439
<pre highlight="webidl">
9436
9440
namespace Foo { };
9437
9441
9438
- [LegacyNamespace=Foo, Constructor]
9439
- interface Bar { };
9442
+ [LegacyNamespace=Foo]
9443
+ interface Bar {
9444
+ constructor();
9445
+ };
9440
9446
</pre>
9441
9447
9442
9448
In an ECMAScript implementation of the above namespace and interface, the
@@ -9562,7 +9568,6 @@ are to be implemented.
9562
9568
9563
9569
<pre highlight="webidl">
9564
9570
[Exposed=Window,
9565
- Constructor,
9566
9571
LegacyWindowAlias=WebKitCSSMatrix]
9567
9572
interface DOMMatrix : DOMMatrixReadOnly {
9568
9573
// ...
@@ -14149,9 +14154,9 @@ fragment:
14149
14154
14150
14155
<pre class="idl">
14151
14156
[Exposed=(Window,Worker),
14152
- Constructor(optional DOMString message = "", optional DOMString name = "Error"),
14153
14157
Serializable]
14154
14158
interface DOMException { // but see below note about ECMAScript binding
14159
+ constructor(optional DOMString message = "", optional DOMString name = "Error");
14155
14160
readonly attribute DOMString name;
14156
14161
readonly attribute DOMString message;
14157
14162
readonly attribute unsigned short code;
0 commit comments