Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: More consistent wording for the %DateTimeFormat%.[[LocaleData]] requirements #360

Merged
merged 3 commits into from
Aug 15, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -491,21 +491,21 @@ <h1>Internal slots</h1>
</emu-note>

<p>
The value of the [[LocaleData]] internal slot is implementation defined within the constraints described in <emu-xref href="#sec-internal-slots"></emu-xref> and the following additional constraints:
The value of the [[LocaleData]] internal slot is implementation defined within the constraints described in <emu-xref href="#sec-internal-slots"></emu-xref> and the following additional constraints, for all locale values _locale_:
</p>

<ul>
<li>
The list that is the value of the `"nu"` field of any locale field of [[LocaleData]] must not include the values `"native"`, `"traditio"`, or `"finance"`.
[[LocaleData]].[[&lt;_locale_&gt;]].[[nu]] must be a list that does not include the values `"native"`, `"traditio"`, or `"finance"`.
Ms2ger marked this conversation as resolved.
Show resolved Hide resolved
</li>
<li>
[[LocaleData]].[[&lt;_locale_&gt;]].[[hc]] must be &laquo; *null*, `"h11"`, `"h12"`, `"h23"`, `"h24"` &raquo; for all locale values _locale_.
[[LocaleData]].[[&lt;_locale_&gt;]].[[hc]] must be &laquo; *null*, `"h11"`, `"h12"`, `"h23"`, `"h24"` &raquo;.
</li>
<li>
[[LocaleData]].[[&lt;_locale_&gt;]] must have an [[hourCycle]] field with a String value equal to `"h11"`, `"h12"`, `"h23"`, or `"h24"` for all locale values _locale_.
[[LocaleData]].[[&lt;_locale_&gt;]].[[hourCycle]] must be a String value equal to `"h11"`, `"h12"`, `"h23"`, or `"h24"`.
</li>
<li>
[[LocaleData]][locale] must have a formats field for all locale values. The value of this field must be a list of records, each of which has a subset of the fields shown in <emu-xref href="#table-datetimeformat-components"></emu-xref>, where each field must have one of the values specified for the field in <emu-xref href="#table-datetimeformat-components"></emu-xref>. Multiple records in a list may use the same subset of the fields as long as they have different values for the fields. The following subsets must be available for each locale:
[[LocaleData]].[[&lt;_locale_&gt;]].[[formats]] must be a list of records, each of which has a subset of the fields shown in <emu-xref href="#table-datetimeformat-components"></emu-xref>, where each field must have one of the values specified for the field in <emu-xref href="#table-datetimeformat-components"></emu-xref>. Multiple records in a list may use the same subset of the fields as long as they have different values for the fields. The following subsets must be available for each locale:
Ms2ger marked this conversation as resolved.
Show resolved Hide resolved
<ul>
<li>weekday, year, month, day, hour, minute, second</li>
<li>weekday, year, month, day</li>
Expand All @@ -515,7 +515,7 @@ <h1>Internal slots</h1>
<li>hour, minute, second</li>
<li>hour, minute</li>
</ul>
Each of the records must also have a pattern field, whose value is a String value that contains for each of the date and time format component fields of the record a substring starting with `"{"`, followed by the name of the field, followed by `"}"`. If the record has an hour field, it must also have a pattern12 field, whose value is a String value that, in addition to the substrings of the pattern field, contains a substring `"{ampm}"`.
Each of the records must also have a [[pattern]] field, whose value is a String value that contains for each of the date and time format component fields of the record a substring starting with `"{"`, followed by the name of the field, followed by `"}"`. If the record has an hour field, it must also have a [[pattern12]] field, whose value is a String value that, in addition to the substrings of the [[pattern]] field, contains a substring `"{ampm}"`.
</li>
</ul>

Expand Down