-
Notifications
You must be signed in to change notification settings - Fork 4
/
149.txt
180 lines (130 loc) · 5.33 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
* 仕様書
[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]]]]
: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:[CODE(DOMi)@en[[[Window]]]]
:indexed getter:○
:length:○
:x:[CODE(DOMi)@en[[[HTMLFormElement]]]]
:indexed getter:○
:length:○
: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:○
:x:[CODE(DOMi)@en[[[HTMLAllCollection]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:x:[CODE(DOMi)@en[[[HTMLFormControlsCollection]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:x:[CODE(DOMi)@en[[[HTMLOptionsCollection]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:x:[CODE(DOMi)@en[[[HTMLPropertiesCollection]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
: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:○
:x:[CODE(DOMi)@en[[[Plugin]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:x:[CODE(DOMi)@en[[[MimeTypeArray]]]]
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
:x:[CODE(DOMi)@en[[[StyleSheetList]]]]
:x:[CODE(DOMi)@en[[[CSSRuleList]]]]
:x:[CODE(DOMi)@en[[[CSSStyleDeclaration]]]]
:x:[CODE(DOMi)@en[[[MediaList]]]]
:x:[CODE(DOMi)@en[[[TouchList]]]]
:x:[CODE(DOMi)@en[[[DOMRectList]]]]
([CODE(DOMi)@en[[[ClientRectList]]]])
:indexed getter:[CODE(DOMm)@en[[[item]]]]
:length:○
: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[[[DOMStringList]]]]
:x:[CODE(DOMi)@en[[[DOMImplementationList]]]]
:x:[CODE(DOMi)@en[[[NameList]]]]
:x:[CODE(DOMi)@en[[[History]]]]
:length:○
]FIG]
* [CODE(IDL)@en['''['''ArrayClass''']''']]
[2] [DFN[[CODE(IDL)@en[[['''['''ArrayClass''']''']]]] [[拡張属性]]]]は、 [[JavaScript]]
で [CODE(JS)@en[[[Array]]]] を[[継承]]した[[オブジェクト]]となることを表しています。
* [CODE(IDL)@en['''['''ArrayClass''']''']] でない配列に準じたインターフェイス一覧
[6] [[配列]]に近い動作をするものの [[Web IDL]] で[[配列]]として扱われていない[[インターフェイス]]には、次のものがあります。
[FIG(short list)[
]FIG]
* メモ
[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>