-
Notifications
You must be signed in to change notification settings - Fork 4
/
544.txt
133 lines (97 loc) · 6.08 KB
/
544.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
* 分類
[6]
[FIG(short list)[
- [[カスタム要素構築器]]
]FIG]
* 名前の衝突
[2] [[MathML]] の [[DOM]] には [CODE(DOMa)@en[[[constructor]]]] [[DOM属性]]があります。
* 関数としての呼び出し
[4] [[WinIE]] と [[Firefox]] は関数として呼び出しても同じように動作しますが、 [[Chrome]] は例外
([CODE(JS)@en[[[TypeError]]]]) を投げます。 [TIME[2013-04-25T03:50:43.700Z]]
[5] [[WebIDL]] 仕様上は特に言及がなく、 [[Firefox]] の動作が正しそうです。 [TIME[2013-04-25T03:50:59.800Z]]
[REFS[
- [3] [CITE[constructor]] ([TIME[2013-04-25 03:49:01 +09:00]] 版) <http://suika.suikawiki.org/~wakaba/test/web/dom/binding/constructor/function-1.html>
]REFS]
* 歴史
[FIG(quote)[
[FIGCAPTION[
[1] [CITE[ECMAScript Language Specification (HTML version)]] ([TIME[2009-04-03 04:43:48 +09:00]] 版) <http://bclary.com/2004/11/07/#a-4.3.4>
]FIGCAPTION]
>A [DFN@en[constructor]] is a [CODE(JS)@en[[[Function]]]] [[object]] that creates and initialises [[objects]].
Each [[constructor]] has an associated [[prototype]] [[object]] that is used to implement [[inheritance]] and shared properties.
]FIG]
[7] [CITE@en[Remove support for '''['''Constructor''']''' on dictionaries (fixes #109).]]
( ([[Ms2ger]]著, [TIME[2016-04-20 20:34:07 +09:00]]))
<https://github.com/heycam/webidl/commit/1982dc3f17002c07f93b39e22f69846478e4a9e2>
[8] [CITE@en[Proposal: allow subclasses of constructible built-ins to be constructed · Issue #125 · heycam/webidl]]
( ([TIME[2016-06-13 11:45:28 +09:00]]))
<https://github.com/heycam/webidl/issues/125>
[9] [CITE@en[Throw when not calling interfaces as constructors (#205)]]
([[tobie]]著, [TIME[2016-11-04 06:12:42 +09:00]])
<https://github.com/heycam/webidl/commit/001ba520eb80c23133e65bc721f1f9910732316c>
[10] [CITE@en[Revamp interface bindings (#313)]]
([[tobie]]著, [TIME[2017-02-21 07:17:07 +09:00]])
<https://github.com/heycam/webidl/commit/4a8f57e276369db7ea5fb09974a09b0ca5d276dd>
[11] [CITE@en[Use Web IDL to construct custom element constructors]]
([[domenic]]著, [TIME[2017-03-28 13:20:59 +09:00]])
<https://github.com/whatwg/dom/commit/1ca094a209ba020348ac146c8bda157b7c5f3212>
[12] [CITE@en[Link function objects and constructors to relevant DFNs in ES (#418)]]
([[tobie]]著, [TIME[2017-08-19 18:09:47 +09:00]])
<https://github.com/heycam/webidl/commit/080bceaf43d9bee642aa797a21b3bd203b74c684>
[13] [CITE@en[Link function objects and constructors to relevant DFNs in ES by tobie · Pull Request #418 · heycam/webidl]]
([TIME[2017-08-20 11:15:07 +09:00]])
<https://github.com/heycam/webidl/pull/418>
[14] [CITE@en[Update the requirement about the definition of a constructor (#697)]]
([[Ms2ger]]著, [TIME[2019-03-27 00:13:57 +09:00]])
<https://github.com/heycam/webidl/commit/c86c55b069ba1146aa345f819cd9833e5bcf51bf>
[15] [CITE@en[Update the requirement about the definition of a constructor by Ms2ger · Pull Request #697 · heycam/webidl]]
([TIME[2019-08-14 11:27:58 +09:00]])
<https://github.com/heycam/webidl/pull/697>
[16] [CITE@en[Disallow combining Global with Constructor/NamedConstructor. (#745)]]
([[Ms2ger]]著, [TIME[2019-06-28 04:28:25 +09:00]])
<https://github.com/heycam/webidl/commit/a029460787be46f850abfc60f35cc6da05145b89>
[17] [CITE@en[Disallow combining Global with Constructor/NamedConstructor. by Ms2ger · Pull Request #745 · heycam/webidl]]
([TIME[2020-01-12 14:59:13 +09:00]])
<https://github.com/heycam/webidl/pull/745>
[18] [CITE@en[Should make it clear that '''['''Global''']''' and '''['''Constructor''']''' can't coexist · Issue #744 · heycam/webidl]]
([TIME[2020-01-12 14:59:33 +09:00]])
<https://github.com/heycam/webidl/issues/744>
[19] [CITE@en[Use new syntax for DOMException. (#780)]]
([[Ms2ger]]著, [TIME[2019-08-29 23:21:42 +09:00]])
<https://github.com/heycam/webidl/commit/21ffd9bd979bbebc99d1b7ed28c4f56b7c02b018>
[20] [CITE@en[Use new syntax for DOMException. by Ms2ger · Pull Request #780 · heycam/webidl]]
([TIME[2020-01-12 17:10:23 +09:00]])
<https://github.com/heycam/webidl/pull/780>
[21] [CITE@en[Revert "Use new syntax for DOMException. (#780)"]]
([[bzbarsky]]著, [TIME[2019-08-30 00:25:08 +09:00]])
<https://github.com/heycam/webidl/commit/182b487c128bce00e62431f19458c15fe91e9738>
[22] [CITE@en[Revert "Use new syntax for DOMException." by bzbarsky · Pull Request #781 · heycam/webidl]]
([TIME[2020-01-12 17:14:20 +09:00]])
<https://github.com/heycam/webidl/pull/781>
[23] [CITE@en[Stop using extended attributes for constructors]]
([[Ms2ger]]著, [TIME[2019-03-26 23:26:37 +09:00]])
<https://github.com/heycam/webidl/commit/91ca6ebb4d4fca9703309e19256bbc5f5dd77e3c>
[24] [CITE@en[Stop using extended attributes for constructors by Ms2ger · Pull Request #700 · heycam/webidl]]
([TIME[2020-01-12 19:20:59 +09:00]])
<https://github.com/heycam/webidl/pull/700>
[25] [CITE@en[Stop using extended attributes for constructors · Issue #636 · heycam/webidl]]
([TIME[2020-01-12 19:22:41 +09:00]])
<https://github.com/heycam/webidl/issues/636>
[26] [CITE@en[Allow "constructor" as an argument name (#786)]]
([[saschanaz]]著, [TIME[2019-09-02 18:16:24 +09:00]])
<https://github.com/heycam/webidl/commit/fad813abd912f39f00a898181a6f306e38c5413e>
[27] [CITE@en[Allow "constructor" as an argument name by saschanaz · Pull Request #786 · heycam/webidl]]
([TIME[2020-01-12 20:24:11 +09:00]])
<https://github.com/heycam/webidl/pull/786>
[28] [CITE@en[Should "constructor" be allowed as an argument name? · Issue #779 · heycam/webidl]]
([TIME[2020-01-12 20:24:46 +09:00]])
<https://github.com/heycam/webidl/issues/779>
[29] [CITE@en[Updating constructor definitions (#1470)]]
([[jakearchibald]]著, [TIME[2019-09-11 10:49:12 +09:00]])
<https://github.com/w3c/ServiceWorker/commit/2500c4c29540ec685891837556e13a51a297d51a>
[30] [CITE@en[Updating constructor definitions by jakearchibald · Pull Request #1470 · w3c/ServiceWorker]]
([TIME[2020-01-13 13:11:46 +09:00]])
<https://github.com/w3c/ServiceWorker/pull/1470>
[31] [CITE@en[Update to constructor operations · Issue #1464 · w3c/ServiceWorker]]
([TIME[2020-01-13 13:11:56 +09:00]])
<https://github.com/w3c/ServiceWorker/issues/1464>