Skip to content

Commit 1dfc995

Browse files
authored
Editorial: Use HTML lists to describe Intl constructors and prototypes (#1016)
1 parent f7fbe5c commit 1dfc995

11 files changed

Lines changed: 202 additions & 37 deletions

spec/collator.html

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ <h1>Collator Objects</h1>
33

44
<emu-clause id="sec-intl-collator-constructor" oldids="sec-the-intl-collator-constructor">
55
<h1>The Intl.Collator Constructor</h1>
6-
<p>The Intl.Collator constructor is the <dfn>%Intl.Collator%</dfn> intrinsic object and a standard built-in property of the Intl object. Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
6+
7+
<p>The Intl.Collator constructor:</p>
8+
<ul>
9+
<li>is <dfn>%Intl.Collator%</dfn>.</li>
10+
<li>is the initial value of the *"Collator"* property of the Intl object.</li>
11+
</ul>
12+
13+
<p>Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
714

815
<emu-clause id="sec-intl.collator" oldids="sec-initializecollator">
916
<h1>Intl.Collator ( [ _locales_ [ , _options_ ] ] )</h1>
@@ -46,7 +53,11 @@ <h1>Intl.Collator ( [ _locales_ [ , _options_ ] ] )</h1>
4653
<emu-clause id="sec-properties-of-the-intl-collator-constructor">
4754
<h1>Properties of the Intl.Collator Constructor</h1>
4855

49-
<p>The Intl.Collator constructor has the following properties:</p>
56+
<p>The Intl.Collator constructor:</p>
57+
<ul>
58+
<li>has a [[Prototype]] internal slot whose value is %Function.prototype%.</li>
59+
<li>has the following properties:</li>
60+
</ul>
5061

5162
<emu-clause id="sec-intl.collator.prototype">
5263
<h1>Intl.Collator.prototype</h1>
@@ -93,7 +104,13 @@ <h1>Internal slots</h1>
93104
<emu-clause id="sec-properties-of-the-intl-collator-prototype-object">
94105
<h1>Properties of the Intl.Collator Prototype Object</h1>
95106

96-
<p>The Intl.Collator prototype object is itself an ordinary object. <dfn>%Intl.Collator.prototype%</dfn> is not an Intl.Collator instance and does not have an [[InitializedCollator]] internal slot or any of the other internal slots of Intl.Collator instance objects.</p>
107+
<p>The <dfn>Intl.Collator prototype object</dfn>:</p>
108+
<ul>
109+
<li>is <dfn>%Intl.Collator.prototype%</dfn>.</li>
110+
<li>is an ordinary object.</li>
111+
<li>is not an Intl.Collator instance and does not have an [[InitializedCollator]] internal slot or any of the other internal slots of Intl.Collator instance objects.</li>
112+
<li>has a [[Prototype]] internal slot whose value is %Object.prototype%.</li>
113+
</ul>
97114

98115
<emu-clause id="sec-intl.collator.prototype.constructor">
99116
<h1>Intl.Collator.prototype.constructor</h1>

spec/datetimeformat.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ <h1>DateTimeFormat Objects</h1>
44
<emu-clause id="sec-intl-datetimeformat-constructor">
55
<h1>The Intl.DateTimeFormat Constructor</h1>
66

7-
<p>The Intl.DateTimeFormat constructor is the <dfn>%Intl.DateTimeFormat%</dfn> intrinsic object and a standard built-in property of the Intl object. Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
7+
<p>The Intl.DateTimeFormat constructor:</p>
8+
<ul>
9+
<li>is <dfn>%Intl.DateTimeFormat%</dfn>.</li>
10+
<li>is the initial value of the *"DateTimeFormat"* property of the Intl object.</li>
11+
</ul>
12+
13+
<p>Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
814

915
<emu-clause id="sec-intl.datetimeformat">
1016
<h1>Intl.DateTimeFormat ( [ _locales_ [ , _options_ ] ] )</h1>
@@ -174,7 +180,11 @@ <h1>
174180
<emu-clause id="sec-properties-of-intl-datetimeformat-constructor">
175181
<h1>Properties of the Intl.DateTimeFormat Constructor</h1>
176182

177-
<p>The Intl.DateTimeFormat constructor has the following properties:</p>
183+
<p>The Intl.DateTimeFormat constructor:</p>
184+
<ul>
185+
<li>has a [[Prototype]] internal slot whose value is %Function.prototype%.</li>
186+
<li>has the following properties:</li>
187+
</ul>
178188

179189
<emu-clause id="sec-intl.datetimeformat.prototype">
180190
<h1>Intl.DateTimeFormat.prototype</h1>
@@ -848,7 +858,13 @@ <h1>DateTime Style Range Records</h1>
848858
<emu-clause id="sec-properties-of-intl-datetimeformat-prototype-object">
849859
<h1>Properties of the Intl.DateTimeFormat Prototype Object</h1>
850860

851-
<p>The Intl.DateTimeFormat prototype object is itself an ordinary object. <dfn>%Intl.DateTimeFormat.prototype%</dfn> is not an Intl.DateTimeFormat instance and does not have an [[InitializedDateTimeFormat]] internal slot or any of the other internal slots of Intl.DateTimeFormat instance objects.</p>
861+
<p>The <dfn>Intl.DateTimeFormat prototype object</dfn>:</p>
862+
<ul>
863+
<li>is <dfn>%Intl.DateTimeFormat.prototype%</dfn>.</li>
864+
<li>is an ordinary object.</li>
865+
<li>is not an Intl.DateTimeFormat instance and does not have an [[InitializedDateTimeFormat]] internal slot or any of the other internal slots of Intl.DateTimeFormat instance objects.</li>
866+
<li>has a [[Prototype]] internal slot whose value is %Object.prototype%.</li>
867+
</ul>
852868

853869
<emu-clause id="sec-intl.datetimeformat.prototype.constructor">
854870
<h1>Intl.DateTimeFormat.prototype.constructor</h1>

spec/displaynames.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ <h1>DisplayNames Objects</h1>
44
<emu-clause id="sec-intl-displaynames-constructor">
55
<h1>The Intl.DisplayNames Constructor</h1>
66

7-
<p>The DisplayNames constructor is the <dfn>%Intl.DisplayNames%</dfn> intrinsic object and a standard built-in property of the Intl object. Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
7+
<p>The Intl.DisplayNames constructor:</p>
8+
<ul>
9+
<li>is <dfn>%Intl.DisplayNames%</dfn>.</li>
10+
<li>is the initial value of the *"DisplayNames"* property of the Intl object.</li>
11+
</ul>
12+
13+
<p>Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
814

915
<emu-clause id="sec-Intl.DisplayNames">
1016
<h1>Intl.DisplayNames ( _locales_, _options_ )</h1>
@@ -46,7 +52,11 @@ <h1>Intl.DisplayNames ( _locales_, _options_ )</h1>
4652
<emu-clause id="sec-properties-of-intl-displaynames-constructor">
4753
<h1>Properties of the Intl.DisplayNames Constructor</h1>
4854

49-
<p>The Intl.DisplayNames constructor has the following properties:</p>
55+
<p>The Intl.DisplayNames constructor:</p>
56+
<ul>
57+
<li>has a [[Prototype]] internal slot whose value is %Function.prototype%.</li>
58+
<li>has the following properties:</li>
59+
</ul>
5060

5161
<emu-clause id="sec-Intl.DisplayNames.prototype">
5262
<h1>Intl.DisplayNames.prototype</h1>
@@ -100,7 +110,13 @@ <h1>Internal slots</h1>
100110
<emu-clause id="sec-properties-of-intl-displaynames-prototype-object">
101111
<h1>Properties of the Intl.DisplayNames Prototype Object</h1>
102112

103-
<p>The Intl.DisplayNames prototype object is itself an ordinary object. <dfn>%Intl.DisplayNames.prototype%</dfn> is not an Intl.DisplayNames instance and does not have an [[InitializedDisplayNames]] internal slot or any of the other internal slots of Intl.DisplayNames instance objects.</p>
113+
<p>The <dfn>Intl.DisplayNames prototype object</dfn>:</p>
114+
<ul>
115+
<li>is <dfn>%Intl.DisplayNames.prototype%</dfn>.</li>
116+
<li>is an ordinary object.</li>
117+
<li>is not an Intl.DisplayNames instance and does not have an [[InitializedDisplayNames]] internal slot or any of the other internal slots of Intl.DisplayNames instance objects.</li>
118+
<li>has a [[Prototype]] internal slot whose value is %Object.prototype%.</li>
119+
</ul>
104120

105121
<emu-clause id="sec-Intl.DisplayNames.prototype.constructor">
106122
<h1>Intl.DisplayNames.prototype.constructor</h1>

spec/durationformat.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ <h1>DurationFormat Objects</h1>
44
<emu-clause id="sec-intl-durationformat-constructor">
55
<h1>The Intl.DurationFormat Constructor</h1>
66

7-
<p>The DurationFormat constructor is the <dfn>%Intl.DurationFormat%</dfn> intrinsic object and a standard built-in property of the Intl object. Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
7+
<p>The Intl.DurationFormat constructor:</p>
8+
<ul>
9+
<li>is <dfn>%Intl.DurationFormat%</dfn>.</li>
10+
<li>is the initial value of the *"DurationFormat"* property of the Intl object.</li>
11+
</ul>
12+
13+
<p>Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
814

915
<emu-clause id="sec-Intl.DurationFormat">
1016
<h1>Intl.DurationFormat ( [ _locales_ [ , _options_ ] ] )</h1>
@@ -117,7 +123,11 @@ <h1>Intl.DurationFormat ( [ _locales_ [ , _options_ ] ] )</h1>
117123
<emu-clause id="sec-properties-of-intl-durationformat-constructor">
118124
<h1>Properties of the Intl.DurationFormat Constructor</h1>
119125

120-
<p>The Intl.DurationFormat constructor has the following properties:</p>
126+
<p>The Intl.DurationFormat constructor:</p>
127+
<ul>
128+
<li>has a [[Prototype]] internal slot whose value is %Function.prototype%.</li>
129+
<li>has the following properties:</li>
130+
</ul>
121131

122132
<emu-clause id="sec-Intl.DurationFormat.prototype">
123133
<h1>Intl.DurationFormat.prototype</h1>
@@ -169,7 +179,13 @@ <h1>Internal slots</h1>
169179
<emu-clause id="sec-properties-of-intl-durationformat-prototype-object">
170180
<h1>Properties of the Intl.DurationFormat Prototype Object</h1>
171181

172-
<p>The Intl.DurationFormat prototype object is itself an ordinary object. <dfn>%Intl.DurationFormat.prototype%</dfn> is not an Intl.DurationFormat instance and does not have an [[InitializedDurationFormat]] internal slot or any of the other internal slots of Intl.DurationFormat instance objects.</p>
182+
<p>The <dfn>Intl.DurationFormat prototype object</dfn>:</p>
183+
<ul>
184+
<li>is <dfn>%Intl.DurationFormat.prototype%</dfn>.</li>
185+
<li>is an ordinary object.</li>
186+
<li>is not an Intl.DurationFormat instance and does not have an [[InitializedDurationFormat]] internal slot or any of the other internal slots of Intl.DurationFormat instance objects.</li>
187+
<li>has a [[Prototype]] internal slot whose value is %Object.prototype%.</li>
188+
</ul>
173189

174190
<emu-clause id="sec-Intl.DurationFormat.prototype.constructor">
175191
<h1>Intl.DurationFormat.prototype.constructor</h1>

spec/intl.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
<emu-clause id="intl-object">
22
<h1>The Intl Object</h1>
3-
<p>The Intl object is the <dfn>%Intl%</dfn> intrinsic object and the initial value of the *"Intl"* property of the global object. The Intl object is a single ordinary object.</p>
43

5-
<p>The value of the [[Prototype]] internal slot of the Intl object is the intrinsic object %Object.prototype%.</p>
6-
7-
<p>The Intl object is not a function object. It does not have a [[Construct]] internal method; it is not possible to use the Intl object as a constructor with the `new` operator. The Intl object does not have a [[Call]] internal method; it is not possible to invoke the Intl object as a function.</p>
8-
9-
<p>The Intl object has an internal slot, [[FallbackSymbol]], which is a new %Symbol% in the current realm with the [[Description]] *"IntlLegacyConstructedSymbol"*.</p>
4+
<p>The <dfn>Intl object</dfn>:</p>
5+
<ul>
6+
<li>is <dfn>%Intl%</dfn>.</li>
7+
<li>is the initial value of the *"Intl"* property of the global object.</li>
8+
<li>is an ordinary object.</li>
9+
<li>has a [[Prototype]] internal slot whose value is %Object.prototype%.</li>
10+
<li>is not a function object.</li>
11+
<li>does not have a [[Construct]] internal method; it cannot be used as a constructor with the `new` operator.</li>
12+
<li>does not have a [[Call]] internal method; it cannot be invoked as a function.</li>
13+
<li>has a [[FallbackSymbol]] internal slot, which is a new %Symbol% in the current realm with the [[Description]] *"IntlLegacyConstructedSymbol"*.</li>
14+
</ul>
1015

1116
<emu-clause id="sec-value-properties-of-the-intl-object">
1217
<h1>Value Properties of the Intl Object</h1>

spec/listformat.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ <h1>ListFormat Objects</h1>
44
<emu-clause id="sec-intl-listformat-constructor">
55
<h1>The Intl.ListFormat Constructor</h1>
66

7-
<p>The ListFormat constructor is the <dfn>%Intl.ListFormat%</dfn> intrinsic object and a standard built-in property of the Intl object. Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
7+
<p>The Intl.ListFormat constructor:</p>
8+
<ul>
9+
<li>is <dfn>%Intl.ListFormat%</dfn>.</li>
10+
<li>is the initial value of the *"ListFormat"* property of the Intl object.</li>
11+
</ul>
12+
13+
<p>Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
814

915
<emu-clause id="sec-Intl.ListFormat">
1016
<h1>Intl.ListFormat ( [ _locales_ [ , _options_ ] ] )</h1>
@@ -33,7 +39,11 @@ <h1>Intl.ListFormat ( [ _locales_ [ , _options_ ] ] )</h1>
3339
<emu-clause id="sec-properties-of-intl-listformat-constructor">
3440
<h1>Properties of the Intl.ListFormat Constructor</h1>
3541

36-
<p>The Intl.ListFormat constructor has the following properties:</p>
42+
<p>The Intl.ListFormat constructor:</p>
43+
<ul>
44+
<li>has a [[Prototype]] internal slot whose value is %Function.prototype%.</li>
45+
<li>has the following properties:</li>
46+
</ul>
3747

3848
<emu-clause id="sec-Intl.ListFormat.prototype">
3949
<h1>Intl.ListFormat.prototype</h1>
@@ -87,7 +97,13 @@ <h1>Internal slots</h1>
8797
<emu-clause id="sec-properties-of-intl-listformat-prototype-object">
8898
<h1>Properties of the Intl.ListFormat Prototype Object</h1>
8999

90-
<p>The Intl.ListFormat prototype object is itself an ordinary object. <dfn>%Intl.ListFormat.prototype%</dfn> is not an Intl.ListFormat instance and does not have an [[InitializedListFormat]] internal slot or any of the other internal slots of Intl.ListFormat instance objects.</p>
100+
<p>The <dfn>Intl.ListFormat prototype object</dfn>:</p>
101+
<ul>
102+
<li>is <dfn>%Intl.ListFormat.prototype%</dfn>.</li>
103+
<li>is an ordinary object.</li>
104+
<li>is not an Intl.ListFormat instance and does not have an [[InitializedListFormat]] internal slot or any of the other internal slots of Intl.ListFormat instance objects.</li>
105+
<li>has a [[Prototype]] internal slot whose value is %Object.prototype%.</li>
106+
</ul>
91107

92108
<emu-clause id="sec-Intl.ListFormat.prototype.constructor">
93109
<h1>Intl.ListFormat.prototype.constructor</h1>

spec/locale.html

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ <h1>Locale Objects</h1>
44
<emu-clause id="sec-intl-locale-constructor">
55
<h1>The Intl.Locale Constructor</h1>
66

7-
<p>The Locale constructor is the <dfn>%Intl.Locale%</dfn> intrinsic object and a standard built-in property of the Intl object.</p>
7+
<p>The Intl.Locale constructor:</p>
8+
<ul>
9+
<li>is <dfn>%Intl.Locale%</dfn>.</li>
10+
<li>is the initial value of the *"Locale"* property of the Intl object.</li>
11+
</ul>
812

913
<emu-clause id="sec-Intl.Locale">
1014
<h1>Intl.Locale ( _tag_ [ , _options_ ] )</h1>
@@ -156,7 +160,11 @@ <h1>
156160
<emu-clause id="sec-properties-of-intl-locale-constructor">
157161
<h1>Properties of the Intl.Locale Constructor</h1>
158162

159-
<p>The Intl.Locale constructor has the following properties:</p>
163+
<p>The Intl.Locale constructor:</p>
164+
<ul>
165+
<li>has a [[Prototype]] internal slot whose value is %Function.prototype%.</li>
166+
<li>has the following properties:</li>
167+
</ul>
160168

161169
<emu-clause id="sec-Intl.Locale.prototype">
162170
<h1>Intl.Locale.prototype</h1>
@@ -175,7 +183,13 @@ <h1>Internal slots</h1>
175183
<emu-clause id="sec-properties-of-intl-locale-prototype-object">
176184
<h1>Properties of the Intl.Locale Prototype Object</h1>
177185

178-
<p>The Intl.Locale prototype object is itself an ordinary object. <dfn>%Intl.Locale.prototype%</dfn> is not an Intl.Locale instance and does not have an [[InitializedLocale]] internal slot or any of the other internal slots of Intl.Locale instance objects.</p>
186+
<p>The <dfn>Intl.Locale prototype object</dfn>:</p>
187+
<ul>
188+
<li>is <dfn>%Intl.Locale.prototype%</dfn>.</li>
189+
<li>is an ordinary object.</li>
190+
<li>is not an Intl.Locale instance and does not have an [[InitializedLocale]] internal slot or any of the other internal slots of Intl.Locale instance objects.</li>
191+
<li>has a [[Prototype]] internal slot whose value is %Object.prototype%.</li>
192+
</ul>
179193

180194
<emu-clause id="sec-Intl.Locale.prototype.constructor">
181195
<h1>Intl.Locale.prototype.constructor</h1>

spec/numberformat.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ <h1>NumberFormat Objects</h1>
44
<emu-clause id="sec-intl-numberformat-constructor">
55
<h1>The Intl.NumberFormat Constructor</h1>
66

7-
<p>The NumberFormat constructor is the <dfn>%Intl.NumberFormat%</dfn> intrinsic object and a standard built-in property of the Intl object. Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
7+
<p>The Intl.NumberFormat constructor:</p>
8+
<ul>
9+
<li>is <dfn>%Intl.NumberFormat%</dfn>.</li>
10+
<li>is the initial value of the *"NumberFormat"* property of the Intl object.</li>
11+
</ul>
12+
13+
<p>Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.</p>
814

915
<emu-clause id="sec-intl.numberformat" oldids="sec-initializenumberformat">
1016
<h1>Intl.NumberFormat ( [ _locales_ [ , _options_ ] ] )</h1>
@@ -199,7 +205,11 @@ <h1>
199205
<emu-clause id="sec-properties-of-intl-numberformat-constructor">
200206
<h1>Properties of the Intl.NumberFormat Constructor</h1>
201207

202-
<p>The Intl.NumberFormat constructor has the following properties:</p>
208+
<p>The Intl.NumberFormat constructor:</p>
209+
<ul>
210+
<li>has a [[Prototype]] internal slot whose value is %Function.prototype%.</li>
211+
<li>has the following properties:</li>
212+
</ul>
203213

204214
<emu-clause id="sec-intl.numberformat.prototype">
205215
<h1>Intl.NumberFormat.prototype</h1>
@@ -264,7 +274,13 @@ <h1>Internal slots</h1>
264274
<emu-clause id="sec-properties-of-intl-numberformat-prototype-object">
265275
<h1>Properties of the Intl.NumberFormat Prototype Object</h1>
266276

267-
<p>The Intl.NumberFormat prototype object is itself an ordinary object. <dfn>%Intl.NumberFormat.prototype%</dfn> is not an Intl.NumberFormat instance and does not have an [[InitializedNumberFormat]] internal slot or any of the other internal slots of Intl.NumberFormat instance objects.</p>
277+
<p>The <dfn>Intl.NumberFormat prototype object</dfn>:</p>
278+
<ul>
279+
<li>is <dfn>%Intl.NumberFormat.prototype%</dfn>.</li>
280+
<li>is an ordinary object.</li>
281+
<li>is not an Intl.NumberFormat instance and does not have an [[InitializedNumberFormat]] internal slot or any of the other internal slots of Intl.NumberFormat instance objects.</li>
282+
<li>has a [[Prototype]] internal slot whose value is %Object.prototype%.</li>
283+
</ul>
268284

269285
<emu-clause id="sec-intl.numberformat.prototype.constructor">
270286
<h1>Intl.NumberFormat.prototype.constructor</h1>

0 commit comments

Comments
 (0)