Skip to content

Commit 32cc3c6

Browse files
編集: Update the ecosystem to constructor operations( whatwg/webidl#778
原文はまだ更新されていないが、一括して先取り的に更新。
1 parent cff7902 commit 32cc3c6

20 files changed

+197
-166
lines changed

CSP-ja.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3967,8 +3967,9 @@ <h2 title="Script Interfaces">6. ~script~interface</h2>
39673967
<h3 title="SecurityPolicyViolationEvent Interface">6.1. `SecurityPolicyViolationEvent^I ~interface</h3>
39683968

39693969
<pre class="idl">
3970-
[`Constructor^m(DOMString `type^m, optional `SecurityPolicyViolationEventInit$I %eventInitDict)]
39713970
interface `SecurityPolicyViolationEvent@I : `Event$I {
3971+
constructor(DOMString %type, optional `SecurityPolicyViolationEventInit$I %eventInitDict);
3972+
39723973
readonly attribute DOMString `documentURI$m;
39733974
readonly attribute DOMString `referrer$m;
39743975
readonly attribute DOMString `blockedURI$m;

CSP3-ja.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@
844844
vI.statusCode:#dom-securitypolicyviolationeventinit-statuscode
845845
vI.effectiveDirective:#dom-securitypolicyviolationeventinit-effectivedirective
846846

847-
vE.Constructor:#dom-securitypolicyviolationevent-securitypolicyviolationevent
847+
constructor:#dom-securitypolicyviolationevent-securitypolicyviolationevent
848848
vE.blockedURL:#dom-securitypolicyviolationevent-blockedurl
849849
vE.blockedURI:#dom-securitypolicyviolationevent-blockeduri
850850
vE.colno:#dom-securitypolicyviolationevent-colno
@@ -4703,9 +4703,10 @@ <h3 title="Violation DOM Events">5.1. 違反 DOM ~event</h3>
47034703
`enforce@l, `report@l
47044704
};
47054705

4706-
[`Constructor@vE( `DOMString$ %type, optional `SecurityPolicyViolationEventInit$I %eventInitDict),
4707-
`Exposed$=(Window,Worker)]
4706+
[`Exposed$=(Window,Worker)]
47084707
interface `SecurityPolicyViolationEvent@I : `Event$I {
4708+
constructor(`DOMString$ %type, optional `SecurityPolicyViolationEventInit$I %eventInitDict);
4709+
47094710
readonly attribute `USVString$ `documentURL@vE;
47104711
readonly attribute `USVString$ `documentURI$vE; // †
47114712
readonly attribute `USVString$ `referrer@vE;

DOM-Parsing-ja.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
text = key + text.slice(n).replace(/\w+/g, '<var>$&</var>');
5353
}
5454
break;
55+
case 'mc':
56+
text = 'constructor';
57+
klass = 'm';
58+
break;
5559
case 'l':
5660
return `"<code class="literal">${text}</code>"`;
5761
break;
@@ -300,7 +304,6 @@
300304

301305
●IDL
302306
CEReactions:~HEcustom#cereactions
303-
Constructor:~WEBIDL#Constructor
304307
Exposed:~WEBIDL#Exposed
305308

306309
DOMString:~WEBIDL#idl-DOMString
@@ -1017,9 +1020,9 @@ <h3 title="The DOMParser interface">2.1. `DOMParser^I ~interface</h3>
10171020

10181021

10191022
<pre class="idl">
1020-
[`Constructor$,
1021-
`Exposed$=Window]
1023+
[`Exposed$=Window]
10221024
interface `DOMParser$I {
1025+
`DOMParser$mc();
10231026
[`NewObject$] `Document$I `parseFromString$m(`DOMString$ %str, `SupportedType$I %type);
10241027
};
10251028

@@ -1212,9 +1215,9 @@ <h3 title="The DOMParser interface">2.1. `DOMParser^I ~interface</h3>
12121215
<h3 title="The XMLSerializer interface">2.2. `XMLSerializer^I ~interface</h3>
12131216

12141217
<pre class="idl">
1215-
[`Constructor$,
1216-
`Exposed$=Window]
1218+
[`Exposed$=Window]
12171219
interface `XMLSerializer$I {
1220+
`XMLSerializer$mc();
12181221
`DOMString$ `serializeToString$m(`Node$I %root);
12191222
};
12201223
</pre>

HTML-dnd-ja.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,9 +1099,10 @@ <h3 title="The DataTransfer interface">6.7.3. `DataTransfer^I ~interface</h3>
10991099
</p>
11001100

11011101
<pre class="idl">
1102-
[Exposed=Window,
1103-
<a href="#dom-datatransfer">Constructor</a>]
1102+
[Exposed=Window]
11041103
interface `DataTransfer@I {
1104+
<a href="#dom-datatransfer">constructor</a>();
1105+
11051106
attribute DOMString `dropEffect$m;
11061107
attribute DOMString `effectAllowed$m;
11071108

@@ -2275,9 +2276,10 @@ <h3 title="The DragEvent interface">6.7.4. `DragEvent^I ~interface</h3>
22752276
</p>
22762277

22772278
<pre class="idl">
2278-
[Exposed=Window,
2279-
Constructor(DOMString %type, optional `DragEventInit$I %eventInitDict = {})]
2279+
[Exposed=Window]
22802280
interface `DragEvent@I : `MouseEvent$I {
2281+
constructor(DOMString %type, optional `DragEventInit$I %eventInitDict = {});
2282+
22812283
readonly attribute `DataTransfer$I? `dataTransfer$m;
22822284
};
22832285

HTML-media-ja.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9821,9 +9821,10 @@ <h4 title="Time ranges">4.8.12.14. 時刻~範囲</h4>
98219821
<h4 title="The TrackEvent interface">4.8.12.15. `TrackEvent^I ~interface</h4>
98229822

98239823
<pre class="idl">
9824-
[Exposed=Window,
9825-
Constructor(DOMString type, optional `TrackEventInit$I %eventInitDict = {})]
9824+
[Exposed=Window]
98269825
interface `TrackEvent@I : `Event$I {
9826+
constructor(DOMString type, optional `TrackEventInit$I %eventInitDict = {});
9827+
98279828
readonly attribute (`VideoTrack$I or `AudioTrack$I or `TextTrack$I)? `track$m;
98289829
};
98299830

HTML-navigation-ja.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4285,9 +4285,10 @@ <h4 title="Persisted user state restoration">7.8.10.1. 持続的な利用者~状
42854285
<h4 title="The PopStateEvent interface">7.8.10.2. `PopStateEvent^I ~interface</h4>
42864286

42874287
<pre class="idl">
4288-
[Exposed=Window,
4289-
Constructor(DOMString %type, optional `PopStateEventInit$I %eventInitDict = {})]
4288+
[Exposed=Window]
42904289
interface `PopStateEvent@I : `Event$I {
4290+
constructor(DOMString %type, optional `PopStateEventInit$I %eventInitDict = {});
4291+
42914292
readonly attribute any `state$m;
42924293
};
42934294

@@ -4326,9 +4327,10 @@ <h4 title="The PopStateEvent interface">7.8.10.2. `PopStateEvent^I ~interface</h
43264327
<h4 title="The HashChangeEvent interface">7.8.10.3. `HashChangeEvent^I ~interface</h4>
43274328

43284329
<pre class="idl">
4329-
[Exposed=Window,
4330-
Constructor(DOMString %type, optional `HashChangeEventInit$I %eventInitDict = {})]
4330+
[Exposed=Window]
43314331
interface `HashChangeEvent@I : `Event$I {
4332+
constructor(DOMString %type, optional `HashChangeEventInit$I %eventInitDict = {});
4333+
43324334
readonly attribute USVString `oldURL$m;
43334335
readonly attribute USVString `newURL$m;
43344336
};
@@ -4389,9 +4391,10 @@ <h4 title="The HashChangeEvent interface">7.8.10.3. `HashChangeEvent^I ~interfac
43894391
<h4 title="The PageTransitionEvent interface">7.8.10.4. `PageTransitionEvent^I ~interface</h4>
43904392

43914393
<pre class="idl">
4392-
[Exposed=Window,
4393-
Constructor(DOMString %type, optional `PageTransitionEventInit$I %eventInitDict = {})]
4394+
[Exposed=Window]
43944395
interface `PageTransitionEvent@I : `Event$I {
4396+
constructor(DOMString %type, optional `PageTransitionEventInit$I %eventInitDict = {});
4397+
43954398
readonly attribute boolean `persisted$m;
43964399
};
43974400

IntersectionObserver-ja.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
text = key + text.slice(n).replace(/\w+/g, '<var>$&</var>');
6666
}
6767
break;
68+
case 'mc':
69+
text = 'constructor';
70+
klass = 'm';
71+
break;
6872
case 'sl':
6973
text = `[[${text}]]`;
7074
break;
@@ -1423,8 +1427,9 @@ <h3 title="The IntersectionObserver interface">2.2. `IntersectionObserver^I ~int
14231427
<h3 title="The IntersectionObserverEntry interface">2.3. `IntersectionObserverEntry^I ~interface</h3>
14241428

14251429
<pre class="idl">
1426-
[<dfn id="dom-intersectionobserverentry-intersectionobserverentry">Constructor</dfn>(`IntersectionObserverEntryInit$I %intersectionObserverEntryInit)]
14271430
interface `IntersectionObserverEntry@I {
1431+
`IntersectionObserverEntry@mc(`IntersectionObserverEntryInit$I %intersectionObserverEntryInit);
1432+
14281433
readonly attribute `DOMHighResTimeStamp$I `time$m;
14291434
readonly attribute `DOMRectReadOnly$I? `rootBounds$m;
14301435
readonly attribute `DOMRectReadOnly$I `boundingClientRect$m;

WebIDL-ja.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5977,7 +5977,8 @@ <h4 title="Constructor operations">2.5.4. 構築子~演算</h4>
59775977
`Constructor@x
59785978
`拡張属性$として定義されていた特能を置き換える。
59795979
`導入されてから日が浅い@https://github.com/heycam/webidl/commit/91ca6ebb4d4fca9703309e19256bbc5f5dd77e3c$href
5980-
ので、まだ反映されていない仕様も多数ある。
5980+
ので、まだ<a href="https://github.com/heycam/webidl/issues/778">反映されていない仕様も多数ある</a>
5981+
— が、それらの仕様の和訳では,先取り的に反映している。
59815982
】</p>
59825983

59835984
<p>

WebStorage-ja.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,9 +1287,10 @@ <h3 title="The storage event">11.2.4. `storage^et ~event</h3>
12871287
<h4 title="The StorageEvent interface">11.2.4.1. `StorageEvent^I ~interface</h4>
12881288

12891289
<pre class="idl">
1290-
[Exposed=Worker,
1291-
Constructor(DOMString %type, optional `StorageEventInit$I %eventInitDict = {})]
1290+
[Exposed=Worker]
12921291
interface `StorageEvent@I : `Event$I {
1292+
constructor(DOMString %type, optional `StorageEventInit$I %eventInitDict = {});
1293+
12931294
readonly attribute DOMString? `key$mE;
12941295
readonly attribute DOMString? `oldValue$mE;
12951296
readonly attribute DOMString? `newValue$mE;

ambient-light-ja.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
text = `"<code class="literal">${text}</code>"`;
5454
break;
5555
case 'mc':
56-
text = 'Constructor';
56+
text = 'constructor';
57+
klass = 'm';
5758
break;
5859
case 'm':
5960
const n = text.indexOf('(');
@@ -159,10 +160,8 @@
159160
I.Sensor:~SENSORS#sensor
160161
I.SensorOptions:~SENSORS#dictdef-sensoroptions
161162

162-
163-
mc.AmbientLightSensor:#dom-ambientlightsensor-ambientlightsensor
164-
%sensorOptions:#dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions
165163
m.AmbientLightSensor:#dom-ambientlightsensor-ambientlightsensor
164+
%sensorOptions:#dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions
166165

167166
m.illuminance:#dom-ambientlightsensor-illuminance
168167
mb.illuminance:#dom-ambientlightreadingvalues-illuminance
@@ -741,8 +740,9 @@ <h2 title="API">5. ~API</h2>
741740
<h3 title="The AmbientLightSensor Interface">5.1. `Ambientlightsensor^I ~interface</h3>
742741

743742
<pre class="idl">
744-
[`AmbientLightSensor$mc(optional `SensorOptions$I %sensorOptions = {}), `SecureContext$, `Exposed$=Window]
743+
[`SecureContext$, `Exposed$=Window]
745744
interface `AmbientLightSensor@I : `Sensor$I {
745+
`AmbientLightSensor$mc(optional `SensorOptions$I %sensorOptions = {});
746746
readonly attribute `double$? `illuminance$m;
747747
};
748748
</pre>
@@ -756,7 +756,7 @@ <h3 title="The AmbientLightSensor Interface">5.1. `Ambientlightsensor^I ~interfa
756756
<dd>
757757
この構築子は、次を走らすモノトスル
758758
759-
`~ambient光~sensor~objを構築する$( %sensorOptions )
759+
~RET `~ambient光~sensor~objを構築する$( %sensorOptions )
760760
761761
the user agent must invoke the construct an ambient light sensor object abstract operation.
762762
</dd>

css-animations2-ja.html

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@
296296
I.KeyframeEffect:~WANIMapi#keyframeeffect
297297
I.KeyframeEffectReadOnly:~WANIMapi#keyframeeffectreadonly
298298

299-
Constructor:#dom-cssanimation-cssanimation
300-
Constructor:#dom-cssanimation-cssanimation-target-animationname-options-defaulteasing-timeline
301-
Constructor:#dom-csskeyframeeffectreadonly-csskeyframeeffectreadonly
299+
constructor:#dom-cssanimation-cssanimation
300+
constructor:#dom-cssanimation-cssanimation-target-animationname-options-defaulteasing-timeline
301+
constructor:#dom-csskeyframeeffectreadonly-csskeyframeeffectreadonly
302302

303303
m.elapsedTime:~CSSANIM#dom-animationevent-elapsedtime
304304
m.getAnimations:~WANIMapi#dom-animatable-getanimations
@@ -1264,20 +1264,21 @@ <h3 title="The CSSAnimation interface">5.1. `CSSAnimation^I ~interface</h3>
12641264
</p>
12651265

12661266
<pre class="idl">
1267-
[Constructor(
1268-
`Animatable$I? %target,
1269-
`CSSOMString$ %animationName,
1270-
optional (unrestricted double or `KeyframeEffectOptions$I) %options,
1271-
optional `CSSOMString$ %defaultEasing = "ease"
1272-
),
1273-
Constructor(
1274-
`Animatable$I? %target,
1275-
`CSSOMString$ %animationName,
1276-
(unrestricted double or `KeyframeEffectOptions$I) %options,
1277-
`CSSOMString$ %defaultEasing,
1278-
`AnimationTimeline$I? %timeline
1279-
)]
1280-
partial interface `CSSAnimation$I { };
1267+
partial interface `CSSAnimation$I {
1268+
constructor(
1269+
`Animatable$I? %target,
1270+
`CSSOMString$ %animationName,
1271+
optional (unrestricted double or `KeyframeEffectOptions$I) %options,
1272+
optional `CSSOMString$ %defaultEasing = "ease"
1273+
);
1274+
constructor(
1275+
`Animatable$I? %target,
1276+
`CSSOMString$ %animationName,
1277+
(unrestricted double or `KeyframeEffectOptions$I) %options,
1278+
`CSSOMString$ %defaultEasing,
1279+
`AnimationTimeline$I? %timeline
1280+
);
1281+
};
12811282
</pre>
12821283

12831284
<p>
@@ -1296,9 +1297,10 @@ <h3 title="The CSSAnimation interface">5.1. `CSSAnimation^I ~interface</h3>
12961297
</p>
12971298

12981299
<pre class="idl">
1299-
[`Exposed$=Window,
1300-
<dfn id="dom-csskeyframeeffectreadonly-csskeyframeeffectreadonly">`Constructor^c</dfn> (`CSSOMString$ %keyframesName, `CSSOMString$ %defaultEasing)]
1300+
[`Exposed$=Window]
13011301
interface `CSSKeyframeEffectReadOnly@I : `KeyframeEffect$I /* † */{
1302+
constructor(`CSSOMString$ %keyframesName, `CSSOMString$ %defaultEasing);
1303+
13021304
readonly attribute `CSSOMString$ `keyframesName@m;
13031305
readonly attribute `CSSOMString$ `defaultEasing@m;
13041306
};

css-font-loading-ja.html

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
text = key + text.slice(n).replace(/\w+/g, '<var>$&</var>');
6464
}
6565
break;
66-
case 'mC':
66+
case 'mc':
6767
klass = 'm';
68-
text = 'Constructor';
68+
text = 'constructor';
6969
break;
7070
case 'sl':
7171
text = `[[${text}]]`;
@@ -779,15 +779,14 @@ <h2 title="The FontFace Interface">2. `FontFace^I ~interface</h2>
779779
`unloaded@l, `loading@l, `loaded@l, `error@l
780780
};
781781

782-
[
783-
`FontFace$mC(
782+
[`Exposed$=(Window,Worker)]
783+
interface `FontFace@I {
784+
`FontFace$mc(
784785
`CSSOMString$ %family,
785786
(`CSSOMString$ or `BinaryData$I) %source,
786787
optional `FontFaceDescriptors$I %descriptors
787-
),
788-
`Exposed$=(Window,Worker)
789-
]
790-
interface `FontFace@I {
788+
);
789+
791790
attribute `CSSOMString$ `family$m;
792791
attribute `CSSOMString$ `style$m;
793792
attribute `CSSOMString$ `weight$m;
@@ -1545,12 +1544,10 @@ <h2 title="The FontFaceSet Interface">3. `FontFaceSet^I ~interface</h2>
15451544
sequence&lt;`FontFace$I&gt; `fontfaces@dm = [];
15461545
};
15471546

1548-
[`FontFaceSetLoadEvent@mC(
1549-
`CSSOMString$ %type,
1550-
optional `FontFaceSetLoadEventInit$I %eventInitDict
1551-
),
1552-
`Exposed$=(Window,Worker)]
1547+
[`Exposed$=(Window,Worker)]
15531548
interface `FontFaceSetLoadEvent@I : `Event$I {
1549+
`FontFaceSetLoadEvent@mc(`CSSOMString$ %type, optional `FontFaceSetLoadEventInit$I %eventInitDict);
1550+
15541551
[`SameObject$] readonly attribute FrozenArray&lt;`FontFace$I&gt; `fontfaces@m;
15551552
};
15561553

@@ -1562,10 +1559,10 @@ <h2 title="The FontFaceSet Interface">3. `FontFaceSet^I ~interface</h2>
15621559
`FontFaceSet$I %self
15631560
);
15641561

1565-
[`Exposed$=(Window,Worker),
1566-
`FontFaceSet$mC(sequence&lt;`FontFace$I&gt; %initialFaces)
1567-
]
1562+
[`Exposed$=(Window,Worker)]
15681563
interface `FontFaceSet@I : `EventTarget$I {
1564+
`FontFaceSet$mc(sequence&lt;`FontFace$I&gt; %initialFaces);
1565+
15691566
/* <span class="comment">
15701567
`FontFaceSet^I は`~set-like$x。
15711568

0 commit comments

Comments
 (0)