@@ -422,9 +422,10 @@ would have been {{Event/AT_TARGET}}.
422
422
<h3 id=interface-event>Interface {{Event}}</h3>
423
423
424
424
<pre class="idl">
425
- [Constructor(DOMString type, optional EventInit eventInitDict = {}),
426
- Exposed=(Window,Worker,AudioWorklet)]
425
+ [Exposed=(Window,Worker,AudioWorklet)]
427
426
interface Event {
427
+ constructor(DOMString type, optional EventInit eventInitDict = {});
428
+
428
429
readonly attribute DOMString type;
429
430
readonly attribute EventTarget? target;
430
431
readonly attribute EventTarget? srcElement; // historical
@@ -840,9 +841,10 @@ workers or worklets, and is inaccurate for events dispatched in <a>shadow trees<
840
841
<h3 id=interface-customevent>Interface {{CustomEvent}}</h3>
841
842
842
843
<pre class=idl>
843
- [Constructor(DOMString type, optional CustomEventInit eventInitDict = {}),
844
- Exposed=(Window,Worker)]
844
+ [Exposed=(Window,Worker)]
845
845
interface CustomEvent : Event {
846
+ constructor(DOMString type, optional CustomEventInit eventInitDict = {});
847
+
846
848
readonly attribute any detail;
847
849
848
850
void initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null);
@@ -993,9 +995,10 @@ for historical reasons.
993
995
<h3 id=interface-eventtarget>Interface {{EventTarget}}</h3>
994
996
995
997
<pre class=idl>
996
- [Constructor,
997
- Exposed=(Window,Worker,AudioWorklet)]
998
+ [Exposed=(Window,Worker,AudioWorklet)]
998
999
interface EventTarget {
1000
+ constructor();
1001
+
999
1002
void addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
1000
1003
void removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
1001
1004
boolean dispatchEvent(Event event);
@@ -1746,13 +1749,15 @@ function doAmazingness({signal}) {
1746
1749
<h3 id=interface-abortcontroller>Interface {{AbortController}}</h3>
1747
1750
1748
1751
<pre class="idl">
1749
- [Constructor,
1750
- Exposed=(Window,Worker)]
1752
+ [Exposed=(Window,Worker)]
1751
1753
interface AbortController {
1754
+ constructor();
1755
+
1752
1756
[SameObject] readonly attribute AbortSignal signal;
1753
1757
1754
1758
void abort();
1755
- };</pre>
1759
+ };
1760
+ </pre>
1756
1761
1757
1762
<dl class=domintro>
1758
1763
<dt><code><var> controller</var> = new <a constructor lt=AbortController()>AbortController</a> ()</code>
@@ -3353,9 +3358,10 @@ they do not get lost when {{MutationObserverInit/subtree}} is set to true on <a
3353
3358
<h4 id=interface-mutationobserver>Interface {{MutationObserver}}</h4>
3354
3359
3355
3360
<pre class="idl">
3356
- [Constructor(MutationCallback callback),
3357
- Exposed=Window]
3361
+ [Exposed=Window]
3358
3362
interface MutationObserver {
3363
+ constructor(MutationCallback callback);
3364
+
3359
3365
void observe(Node target, optional MutationObserverInit options = {});
3360
3366
void disconnect();
3361
3367
sequence<MutationRecord> takeRecords();
@@ -4802,9 +4808,10 @@ object may be returned as returned by an earlier call.
4802
4808
<h3 id=interface-document>Interface {{Document}}</h3>
4803
4809
4804
4810
<pre class=idl force="Document">
4805
- [Constructor,
4806
- Exposed=Window]
4811
+ [Exposed=Window]
4807
4812
interface Document : Node {
4813
+ constructor();
4814
+
4808
4815
[SameObject] readonly attribute DOMImplementation implementation;
4809
4816
readonly attribute USVString URL;
4810
4817
readonly attribute USVString documentURI;
@@ -5714,9 +5721,9 @@ the <a>context object</a>'s <a>system ID</a>.
5714
5721
<h3 id=interface-documentfragment>Interface {{DocumentFragment}}</h3>
5715
5722
5716
5723
<pre class=idl>
5717
- [Constructor,
5718
- Exposed=Window]
5724
+ [Exposed=Window]
5719
5725
interface DocumentFragment : Node {
5726
+ constructor();
5720
5727
};
5721
5728
</pre>
5722
5729
@@ -7336,12 +7343,14 @@ method, when invoked, must <a>replace data</a> with node <a>context object</a>,
7336
7343
<h3 id=interface-text>Interface {{Text}}</h3>
7337
7344
7338
7345
<pre class=idl>
7339
- [Constructor(optional DOMString data = ""),
7340
- Exposed=Window]
7346
+ [Exposed=Window]
7341
7347
interface Text : CharacterData {
7348
+ constructor(optional DOMString data = "");
7349
+
7342
7350
[NewObject] Text splitText(unsigned long offset);
7343
7351
readonly attribute DOMString wholeText;
7344
- };</pre>
7352
+ };
7353
+ </pre>
7345
7354
7346
7355
<dl class=domintro>
7347
7356
<dt><code><var> text</var> = new <a constructor lt=Text()>Text([<var>data</var> = ""])</a> </code>
@@ -7494,9 +7503,9 @@ attribute must return the <a for=ProcessingInstruction>target</a>.
7494
7503
<h3 id=interface-comment>Interface {{Comment}}</h3>
7495
7504
7496
7505
<pre class=idl>
7497
- [Constructor(optional DOMString data = ""),
7498
- Exposed=Window]
7506
+ [Exposed=Window]
7499
7507
interface Comment : CharacterData {
7508
+ constructor(optional DOMString data = "");
7500
7509
};
7501
7510
</pre>
7502
7511
@@ -7707,9 +7716,9 @@ dictionary StaticRangeInit {
7707
7716
required unsigned long endOffset;
7708
7717
};
7709
7718
7710
- [Constructor(StaticRangeInit init),
7711
- Exposed=Window]
7719
+ [Exposed=Window]
7712
7720
interface StaticRange : AbstractRange {
7721
+ constructor(StaticRangeInit init);
7713
7722
};
7714
7723
</pre>
7715
7724
@@ -7740,9 +7749,10 @@ when invoked, must run these steps:
7740
7749
<h3 id=interface-range>Interface {{Range}}</h3>
7741
7750
7742
7751
<pre class=idl>
7743
- [Constructor,
7744
- Exposed=Window]
7752
+ [Exposed=Window]
7745
7753
interface Range : AbstractRange {
7754
+ constructor();
7755
+
7746
7756
readonly attribute Node commonAncestorContainer;
7747
7757
7748
7758
void setStart(Node node, unsigned long offset);
@@ -9944,8 +9954,10 @@ Document includes XPathEvaluatorBase;
9944
9954
<h3 id=interface-xpathevaluator>Interface {{XPathEvaluator}}</h3>
9945
9955
9946
9956
<pre class=idl>
9947
- [Exposed=Window, Constructor]
9948
- interface XPathEvaluator {};
9957
+ [Exposed=Window]
9958
+ interface XPathEvaluator {
9959
+ constructor();
9960
+ };
9949
9961
9950
9962
XPathEvaluator includes XPathEvaluatorBase;
9951
9963
</pre>
0 commit comments