-
Notifications
You must be signed in to change notification settings - Fork 4
/
149.txt
250 lines (186 loc) · 7.88 KB
/
149.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
* 仕様書
[REFS[
- [1] [CITE[Web IDL (Second Edition)]] ([TIME[2012-12-09 00:11:15 +09:00]] 版) <http://dev.w3.org/2006/webapi/WebIDL/#ArrayClass>
]REFS]
* 配列風インターフェイスの一覧
[FIG(table)[
:x:[[インターフェイス]]
:indexed getter:[[indexed getter]]
:length:[CODE(DOMa)@en[[[length]]]]
:iterable:[CODE(IDL)@en[[[iterable]]]]
:contains:[CODE(DOMm)@en[[[contains]]]]
:ArrayClass:[CODE(DOMi)@en[[[ArrayClass]]]]
:named getter:[[named getter]]
:legacycaller:[CODE(IDL)@en[[[legacycaller]]]]
:x:[[JavaScript]] [CODE(JS)@en[[[Array]]]]
:indexed getter:○
:length:○
:x:[[JavaScript]] [CODE(JS)@en[[[String]]]]
:indexed getter:○
:length:○
:x:[[Web IDL]] [CODE(IDL)@en[[[sequence<>]]]]
:x: [[Web IDL]] [CODE(IDL)@en[[[FrozenArray<>]]]]
:x:[CODE(DOMi)@en[[[Window]]]]
:indexed getter:○
:length:○
:named getter:○
:x:[CODE(DOMi)@en[[[HTMLFormElement]]]]
:indexed getter:○
:length:○
:named getter:○
:x:[CODE(DOMi)@en[[[HTMLSelectElement]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:x:[CODE(DOMi)@en[[[NodeList]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:iterable:○
:x:[CODE(DOMi)@en[[[Elements]]]]
:indexed getter:○
:length:○
:iterable:○
:x:[CODE(DOMi)@en[[[NamedNodeMap]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:x:[CODE(DOMi)@en[[[HTMLCollection]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:named getter:○
:x:[CODE(DOMi)@en[[[HTMLAllCollection]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:named getter:○
:legacycaller:○
:x:[CODE(DOMi)@en[[[HTMLFormControlsCollection]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:named getter:○
:x:[CODE(DOMi)@en[[[HTMLOptionsCollection]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:named getter:○
:x:[CODE(DOMi)@en[[[VideoTrackList]]]]
:indexed getter:○
:length:○
:x:[CODE(DOMi)@en[[[AudioTrackList]]]]
:indexed getter:○
:length:○
:x:[CODE(DOMi)@en[[[TextTrackList]]]]
:indexed getter:○
:length:○
:x:[CODE(DOMi)@en[[[PluginArray]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:named getter:○
:x:[CODE(DOMi)@en[[[Plugin]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:named getter:○
:x:[CODE(DOMi)@en[[[MimeTypeArray]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:named getter:○
:x:[CODE(DOMi)@en[[[StyleSheetList]]]]
:ArrayClass: ○
:x:[CODE(DOMi)@en[[[CSSRuleList]]]]
:ArrayClass: ○
:x:[CODE(DOMi)@en[[[CSSStyleDeclaration]]]]
:named getter:○
:x:[CODE(DOMi)@en[[[MediaList]]]]
:ArrayClass: ○
:x:[CODE(DOMi)@en[[[TouchList]]]]
:x:[CODE(DOMi)@en[[[DataTransferItemList]]]]
:indexed getter:○
:length:○
:x:[CODE(DOMi)@en[[[DOMTokenList]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:contains:○
:length:○
:iterable:○
:x:[CODE(DOMi)@en[[[History]]]]
:length:○
:x:[CODE(DOMi)@en[[[DOMStringList]]]] ([[廃止]])
:x:[CODE(DOMi)@en[[[DOMImplementationList]]]] ([[廃止]])
:x:[CODE(DOMi)@en[[[NameList]]]] ([[廃止]])
:x:[CODE(DOMi)@en[[[HTMLPropertiesCollection]]]] ([[廃止]])
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:named getter:○
:x:
[CODE(DOMi)@en[[[ClientRectList]]]]
→ [CODE(DOMi)@en[[[DOMRectList]]]]
→ [[廃止]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:x: [[Web IDL]] [CODE[[[[VAR[T]]'''['''''']''']]]] ([[廃止]])
]FIG]
* [CODE(IDL)@en[sequence<[VAR[T]]>]] 型
@@
* [CODE(IDL)@en[FrozenArray<[VAR[T]]>]] 型
@@
[6] 次の場所で使われています。
[FIG(list)[
- [CODE(DOMa)@en[[[vibrate]]]] ([CODE(DOMi)@en[[[Notification]]]])
- [CODE(DOMa)@en[[[actions]]]] ([CODE(DOMi)@en[[[Notification]]]])
]FIG]
* [CODE(IDL)@en['''['''ArrayClass''']''']]
[2]
[DFN[[CODE(IDL)@en[[[LegacyArrayClass]]]]]] [[拡張属性]]
(旧 [DFN[[CODE(IDL)@en[[[ArrayClass]]]] [[拡張属性]]]])
は、 [[JavaScript]]
で [CODE(JS)@en[[[Array]]]] を[[継承]]した[[オブジェクト]]となることを表しています。
* メモ
[5] [CITE@en[Bug 20020 – Support subclassing Array]]
( ([TIME[2013-09-13 07:43:37 +09:00]] 版))
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=20020>
[7] [CITE[Issue 229398 - chromium - Add support for ''''''[''''''ArrayClass'''''']'''''' and use that on NodeList - An open-source project to help move the web forward. - Google Project Hosting]]
( ([TIME[2014-01-05 00:47:09 +09:00]] 版))
<http://code.google.com/p/chromium/issues/detail?id=229398>
[8] [CITE[''''''[''''''whatwg'''''']'''''' NodeList.forEach/map/filter still doesn't work]]
( ([TIME[2014-01-04 23:54:38 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2014-January/041837.html>
[9] [CITE@en[Bug 23682 – Fix the current ''''''[''''''ArrayClass'''''']'''''', '''['''''']''' and sequence<T> mess]]
( ([TIME[2014-01-28 21:03:46 +09:00]] 版))
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=23682>
[10] [CITE@en[We replaced ArrayClass with iterable<> a while back but I forgot about t... · 81ff98b · whatwg/dom]]
( ([TIME[2014-11-21 01:40:27 +09:00]] 版))
<https://github.com/whatwg/dom/commit/81ff98b85b1cb54d394d9ca70a8c131cc86f928d>
[11] [CITE@en[Re: WebIDL Plans]]
([[Yves Lafon]] 著, [TIME[2015-04-14 21:22:12 +09:00]] 版)
<https://lists.w3.org/Archives/Public/public-webapps/2015AprJun/0093.html>
[12] [CITE@en[Re: WebIDL Plans]]
([[Boris Zbarsky]] 著, [TIME[2015-04-15 01:37:31 +09:00]] 版)
<https://lists.w3.org/Archives/Public/public-webapps/2015AprJun/0097.html>
[13] [CITE@en[Bug 23682 – Fix the current ''''''[''''''ArrayClass'''''']'''''', ''''''['''''''''''']'''''' and sequence<T> mess]]
([TIME[2015-04-16 23:26:48 +09:00]] 版)
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=23682>
[14] [CITE@en[Array-with-item in WebIDL]]
([[Jonas Sicking]] 著, [TIME[2015-06-10 13:45:59 +09:00]] 版)
<https://lists.w3.org/Archives/Public/public-script-coord/2015AprJun/0060.html>
[3] [CITE[IRC logs: freenode / #whatwg / 20150715]]
([TIME[2015-07-16 10:46:57 +09:00]] 版)
<http://krijnhoetmer.nl/irc-logs/whatwg/20150715>
[4] [CITE@en[''''''[''''''WebIDL'''''']'''''' T''''''['''''''''''']'''''' migration]]
([[Travis Leithead]] 著, [TIME[2015-07-17 00:45:10 +09:00]] 版)
<https://lists.w3.org/Archives/Public/public-webapps/2015JulSep/0165.html>
[15] [CITE@en[Use sequence<T> instead of T''''''['''''''''''']'''''' for arguments · whatwg/html@981a563]]
([TIME[2015-08-28 16:36:42 +09:00]] 版)
<https://github.com/whatwg/html/commit/981a563a1d72fe42b71f2d22a2abb476151d7a4a>
[16] [CITE@en[Remove T''''''['''''''''''']'''''' array types. · heycam/webidl@079cbb8]]
([TIME[2015-11-22 19:06:30 +09:00]] 版)
<https://github.com/heycam/webidl/commit/079cbb861a99e9e857a3f2a169c0beeb49cd020a>
[17] [CITE@en[Rename ''''''[''''''ArrayClass'''''']'''''' to ''''''[''''''LegacyArrayClass'''''']''''''. · heycam/webidl@8531378]]
([TIME[2015-11-22 19:26:16 +09:00]] 版)
<https://github.com/heycam/webidl/commit/853137810af373668b8fd2e9418eaade05778e9b>
[18] [CODE[[[ArrayClass]]]] は現時点で [[CSSOM]] にだけ残っているものと思われます。
[CODE[[[LegacyArrayClass]]]] を使っているものは見当たりません。
[TIME[2015-11-22T10:37:45.100Z]]
[19] [CITE@en[Add FrozenArray<T> type. · heycam/webidl@775eace]]
([TIME[2015-11-22 19:53:07 +09:00]] 版)
<https://github.com/heycam/webidl/commit/775eace1758c99501cb52942c321c0c015a1b4bf>
[21] [CITE[Add a default value ''''''['''''''''''']'''''' that can be used for operation argument and dicti... · b0c3626 · heycam/webidl]]
( ([TIME[2014-07-01 09:32:42 +09:00]] 版))
<https://github.com/heycam/webidl/commit/b0c3626a97de27578508aa7a3f52c1b30f26d2bf>
[20] [CITE@en[Bug 25391 – Add default to a sequence e.g. sequence<DOMString> = ''''''['''''''''''']'''''';]]
( ([TIME[2014-07-01 09:32:46 +09:00]] 版))
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=25391>