/
770.txt
68 lines (51 loc) · 3.67 KB
/
770.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
* 仕様書
[REFS[
- [5] [CITE@en-GB[ECMAScript Language Specification ECMA-262 6th Edition – DRAFT]] ([TIME[2014-04-28 18:21:11 +09:00]] 版) <https://people.mozilla.org/~jorendorff/es6-draft.html#sec-6.1.7.1>
- [14] [CITE[Web IDL (Second Edition)]] ([TIME[2016-02-25 00:23:20 +09:00]] 版) <https://heycam.github.io/webidl/#LegacyUnenumerableNamedProperties>
]REFS]
* [[Enumerable]]
[6] [CODE[[['''['''[Enumerable]''']''']]]] は、仕様で明記されない場合は[[偽]]です [SRC[>>5]]。
;; [7] [[ECMAScript]] の[[特性]]や [[WebIDL]] の[[属性]]や[[メソッド]]など多くのものは[[真]]になっています。
* 列挙不能なもの
[2] 次の[[名前付き特性]]は[DFN[[RUBYB[[[列挙不能]]]@en[unenumerable]]]] [SRC[>>1]] です。
[[Web IDL]] の[[拡張属性]] [DFN[[CODE(IDL s)@en[LegacyUnenumerableNamedProperties]]]]
[SRC[>>14]] により規定されています。
[FIG(list middle)[
- [CODE(DOMi)@en[Window]]
- [CODE(DOMi)@en[HTMLCollection]]
-- [CODE(DOMi)@en[HTMLFormControlsCollection]]
-- [CODE(DOMi)@en[HTMLOptionsCollection]]
- [CODE(DOMi)@en[HTMLAllCollection]]
- [CODE(DOMi)@en[NamedNodeMap]]
- [CODE(DOMi)@en[HTMLFormElement]]
- [CODE(DOMi)@en[PluginArray]]
- [CODE(DOMi)@en[MimeTypeArray]]
- [CODE(DOMi)@en[Plugin]]
]FIG]
* 歴史
[3] [[ES3]] までは [DFN[[CODE[[['''['''[DontEnum]''']''']]]]]] [[特性属性]]がありました。
[REFS[
- [9] [CITE@en[ECMAScript DontEnum attribute - MDC]] ([TIME[2007-12-12 04:23:50 +09:00]] 版) <http://developer.mozilla.org/en/docs/ECMAScript_DontEnum_attribute>
]REFS]
[4] [[ES5]] で逆の意味の [DFN[[CODE[[['''['''[Enumerable]''']''']]]]]] [[特性属性]]に置き換えられました。
[REFS[
- [1] [CITE[Web IDL (Second Edition)]] ([TIME[2014-02-10 21:45:38 +09:00]] 版) <http://heycam.github.io/webidl/#dfn-unenumerable>
- [12] [CITE@en[Web Applications 1.0 r8571 Sync with WebIDL over 'unenumerable'.]]
( ([TIME[2014-04-12 04:04:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=8570&to=8571>
- [8] [CITE@en[Make properties on Window unenumerable · whatwg/html@681f341]] ([TIME[2015-09-03 20:45:48 +09:00]] 版) <https://github.com/whatwg/html/commit/681f341183cd8e029028f1862c147b25f5e51916>
]REFS]
[10] [CITE@en[Re: '''['''whatwg''']''' Splitting CanvasRenderingContext2D]] ([[Boris Zbarsky]] 著, [TIME[2015-12-02 01:55:48 +09:00]] 版) <https://lists.w3.org/Archives/Public/public-whatwg-archive/2015Dec/0001.html>
[15] 2016年2月には、 [[Web IDL]] の[[拡張属性]]
[CODE(IDL s)@en[LegacyUnenumerableNamedProperties]] が追加されました。
[REFS[
- [13] [CITE@en[Specify '''['''LegacyUnenumerableNamedProperties''']''' (fixes #82) · heycam/webidl@ee159d8]] ([TIME[2016-03-09 19:17:26 +09:00]] 版) <https://github.com/heycam/webidl/commit/ee159d86834a6be7b9ee4647dadce7e0eba18b0f>
- [16] [CITE@en[Use '''['''LegacyUnenumerableNamedProperties''']''' · whatwg/dom@742e8c1]] ([TIME[2016-03-09 19:21:29 +09:00]] 版) <https://github.com/whatwg/dom/commit/742e8c15312ae447580d2fd5498a02d0902d5ff3>
- [17] [CITE@en[Use '''['''LegacyUnenumerableNamedProperties''']''' · whatwg/html@07f6c7f]] ([TIME[2016-03-09 19:23:36 +09:00]] 版) <https://github.com/whatwg/html/commit/07f6c7f058c57d582db1aced6741cea1ed63ccf7>
]REFS]
[11] [CITE@en[Fix enumerability checking in StructuredClone · whatwg/html@c681eb6]]
([TIME[2016-03-02 16:47:28 +09:00]] 版)
<https://github.com/whatwg/html/commit/c681eb6cc1ca3c61f225aac268c34d7206ec1e7f>
[18] [CITE@en[Merge pull request #94 from nox/unenumerable · heycam/webidl@aa11fa1]]
([TIME[2016-03-23 18:39:46 +09:00]] 版)
<https://github.com/heycam/webidl/commit/aa11fa1e86224d9b5085543846db1bbccc3b7f3f>