Skip to content

Commit

Permalink
Editorial nits
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Aug 11, 2021
1 parent bcfc01a commit 4338a93
Showing 1 changed file with 44 additions and 52 deletions.
96 changes: 44 additions & 52 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2886,16 +2886,16 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
specification: <ref spec=JSTEMPORAL></p>

<ul>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.plaindate">Temporal.PlainDate</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.plaintime">Temporal.PlainTime</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.plaindatetime">Temporal.PlainDateTime</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.zoneddatetime">Temporal.ZonedDateTime</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.duration">Temporal.Duration</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.instant">Temporal.Instant</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.plainyearmonth">Temporal.PlainYearMonth</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.plainmonthday">Temporal.PlainMonthDay</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.timezone">Temporal.TimeZone</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.calendar">Temporal.Calendar</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.plaindate">%Temporal.PlainDate%</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.plaintime">%Temporal.PlainTime%</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.plaindatetime">%Temporal.PlainDateTime%</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.zoneddatetime">%Temporal.ZonedDateTime%</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.duration">%Temporal.Duration%</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.instant">%Temporal.Instant%</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.plainyearmonth">%Temporal.PlainYearMonth%</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.plainmonthday">%Temporal.PlainMonthDay%</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.timezone">%Temporal.TimeZone%</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal.calendar">%Temporal.Calendar%</dfn> constructor</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sec-temporal-getbuiltincalendar">GetBuiltinCalendar</dfn> abstract operation</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#sup-temporal-isbuiltincalendar">IsBuiltinCalendar</dfn> abstract operation</li>
</ul>
Expand Down Expand Up @@ -8454,7 +8454,7 @@ interface <dfn interface>DOMStringList</dfn> {
<span>ToString</span>(<var>value</var>.[[Calendar]]).</p></li>

<li><p>If ! <span>IsBuiltinCalendar</span>(<var>calendarIdentifier</var>) is false, then throw
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code></p></li>
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>

<li><p>Set <var>serialized</var> to { [[Type]]: "Temporal.PlainDate", [[ISOYear]]:
<var>value</var>.[[ISOYear]], [[ISOMonth]]: <var>value</var>.[[ISOMonth]], [[ISODay]]:
Expand Down Expand Up @@ -8483,7 +8483,7 @@ interface <dfn interface>DOMStringList</dfn> {
<span>ToString</span>(<var>value</var>.[[Calendar]]).</p></li>

<li><p>If ! <span>IsBuiltinCalendar</span>(<var>calendarIdentifier</var>) is false, then throw
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code></p></li>
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>

<li><p>Set <var>serialized</var> to { [[Type]]: "Temporal.PlainDateTime", [[ISOYear]]:
<var>value</var>.[[ISOYear]], [[ISOMonth]]: <var>value</var>.[[ISOMonth]], [[ISODay]]:
Expand All @@ -8504,13 +8504,13 @@ interface <dfn interface>DOMStringList</dfn> {
<span>ToString</span>(<var>value</var>.[[TimeZone]]).</p></li>

<li><p>If ! <span>IsValidTimeZoneName</span>(<var>timeZoneIdentifier</var>) is false, then
throw a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code></p></li>
throw a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>

<li><p>Let <var>calendarIdentifier</var> be ?
<span>ToString</span>(<var>value</var>.[[Calendar]]).</p></li>

<li><p>If ! <span>IsBuiltinCalendar</span>(<var>calendarIdentifier</var>) is false, then throw
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code></p></li>
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>

<li><p>Set <var>serialized</var> to { [[Type]]: "Temporal.ZonedDateTime", [[Nanoseconds]]:
<var>value</var>.[[Nanoseconds]], [[TimeZone]]: <var>timeZoneIdentifier</var>, [[Calendar]]:
Expand Down Expand Up @@ -8552,7 +8552,7 @@ interface <dfn interface>DOMStringList</dfn> {
<span>ToString</span>(<var>value</var>.[[Calendar]]).</p></li>

<li><p>If ! <span>IsBuiltinCalendar</span>(<var>calendarIdentifier</var>) is false, then throw
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code></p></li>
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>

<li><p>Set <var>serialized</var> to { [[Type]]: "Temporal.PlainYearMonth", [[ISOYear]]:
<var>value</var>.[[ISOYear]], [[ISOMonth]]: <var>value</var>.[[ISOMonth]], [[ISODay]]:
Expand All @@ -8569,7 +8569,7 @@ interface <dfn interface>DOMStringList</dfn> {
<span>ToString</span>(<var>value</var>.[[Calendar]]).</p></li>

<li><p>If ! <span>IsBuiltinCalendar</span>(<var>calendarIdentifier</var>) is false, then throw
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code></p></li>
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>

<li><p>Set <var>serialized</var> to { [[Type]]: "Temporal.PlainMonthDay", [[ISOYear]]:
<var>value</var>.[[ISOYear]], [[ISOMonth]]: <var>value</var>.[[ISOMonth]], [[ISODay]]:
Expand All @@ -8585,7 +8585,7 @@ interface <dfn interface>DOMStringList</dfn> {
<li><p>Let <var>calendarIdentifier</var> be ? <span>ToString</span>(<var>value</var>).</p></li>

<li><p>If ! <span>IsBuiltinCalendar</span>(<var>calendarIdentifier</var>) is false, then throw
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code></p></li>
a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>

<li><p>Set <var>serialized</var> to { [[Type]]: "Temporal.Calendar", [[Identifier]]:
<var>calendarIdentifier</var> }.</p></li>
Expand All @@ -8600,7 +8600,7 @@ interface <dfn interface>DOMStringList</dfn> {
<li><p>Let <var>timeZoneIdentifier</var> be ? <span>ToString</span>(<var>value</var>).</p></li>

<li><p>If ! <span>IsValidTimeZoneName</span>(<var>timeZoneIdentifier</var>) is false, then
throw a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code></p></li>
throw a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>

<li><p>Set <var>serialized</var> to { [[Type]]: "Temporal.TimeZone", [[Identifier]]:
<var>timeZoneIdentifier</var> }.</p></li>
Expand Down Expand Up @@ -9023,9 +9023,8 @@ o.myself = o;</code></pre>
<li><p>Let <var>calendar</var> be !
<span>GetBuiltinCalendar</span>(<var>serialized</var>.[[Calendar]]).</p></li>

<li><p>Set <var>value</var> to ! <span>Construct</span>(<span
data-x="Temporal.PlainDate">%Temporal.PlainDate%</span>, &laquo;
<var>serialized</var>.[[ISOYear]], <var>serialized</var>.[[ISOMonth]],
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span>%Temporal.PlainDate%</span>,
&laquo; <var>serialized</var>.[[ISOYear]], <var>serialized</var>.[[ISOMonth]],
<var>serialized</var>.[[ISODay]], <var>calendar</var> &raquo;).</p></li>
</ol>
</li>
Expand All @@ -9034,9 +9033,8 @@ o.myself = o;</code></pre>
<p>Otherwise, if <var>serialized</var>.[[Type]] is "Temporal.PlainTime", then:</p>

<ol>
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span
data-x="Temporal.PlainTime">%Temporal.PlainTime%</span>, &laquo;
<var>serialized</var>.[[ISOHour]], <var>serialized</var>.[[ISOMinute]],
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span>%Temporal.PlainTime%</span>,
&laquo; <var>serialized</var>.[[ISOHour]], <var>serialized</var>.[[ISOMinute]],
<var>serialized</var>.[[ISOSecond]], <var>serialized</var>.[[ISOMillisecond]],
<var>serialized</var>.[[ISOMicrosecond]], <var>serialized</var>.[[ISONanosecond]]
&raquo;).</p></li>
Expand All @@ -9050,9 +9048,8 @@ o.myself = o;</code></pre>
<li><p>Let <var>calendar</var> be !
<span>GetBuiltinCalendar</span>(<var>serialized</var>.[[Calendar]]).</p></li>

<li><p>Set <var>value</var> to ! <span>Construct</span>(<span
data-x="Temporal.PlainDateTime">%Temporal.PlainDateTime%</span>, &laquo;
<var>serialized</var>.[[ISOYear]], <var>serialized</var>.[[ISOMonth]],
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span>%Temporal.PlainDateTime%</span>,
&laquo; <var>serialized</var>.[[ISOYear]], <var>serialized</var>.[[ISOMonth]],
<var>serialized</var>.[[ISODay]], <var>serialized</var>.[[ISOHour]],
<var>serialized</var>.[[ISOMinute]], <var>serialized</var>.[[ISOSecond]],
<var>serialized</var>.[[ISOMillisecond]], <var>serialized</var>.[[ISOMicrosecond]],
Expand All @@ -9064,16 +9061,14 @@ o.myself = o;</code></pre>
<p>Otherwise, if <var>serialized</var>.[[Type]] is "Temporal.ZonedDateTime", then:</p>

<ol>
<li><p>Let <var>timeZone</var> be ! <span>Construct</span>(<span
data-x="Temporal.TimeZone">%Temporal.TimeZone%</span>, &laquo;
<var>serialized</var>.[[TimeZone]] &raquo;).</p></li>
<li><p>Let <var>timeZone</var> be ! <span>Construct</span>(<span>%Temporal.TimeZone%</span>,
&laquo; <var>serialized</var>.[[TimeZone]] &raquo;).</p></li>

<li><p>Let <var>calendar</var> be !
<span>GetBuiltinCalendar</span>(<var>serialized</var>.[[Calendar]]).</p></li>

<li><p>Set <var>value</var> to ! <span>Construct</span>(<span
data-x="Temporal.ZonedDateTime">%Temporal.ZonedDateTime%</span>, &laquo;
<var>serialized</var>.[[Nanoseconds]], <var>timeZone</var>, <var>calendar</var>
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span>%Temporal.ZonedDateTime%</span>,
&laquo; <var>serialized</var>.[[Nanoseconds]], <var>timeZone</var>, <var>calendar</var>
&raquo;).</p></li>
</ol>
</li>
Expand All @@ -9082,23 +9077,22 @@ o.myself = o;</code></pre>
<p>Otherwise, if <var>serialized</var>.[[Type]] is "Temporal.Duration", then:</p>

<ol>
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span
data-x="Temporal.Duration">%Temporal.Duration%</span>, &laquo; <var>serialized</var>.[[Years]],
<var>serialized</var>.[[Months]], <var>serialized</var>.[[Weeks]],
<var>serialized</var>.[[Days]], <var>serialized</var>.[[Hours]],
<var>serialized</var>.[[Minutes]], <var>serialized</var>.[[Seconds]],
<var>serialized</var>.[[Milliseconds]], <var>serialized</var>.[[Microseconds]],
<var>serialized</var>.[[Nanoseconds]] &raquo;).</p></li>
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span>%Temporal.Duration%</span>,
&laquo; <var>serialized</var>.[[Years]], <var>serialized</var>.[[Months]],
<var>serialized</var>.[[Weeks]], <var>serialized</var>.[[Days]],
<var>serialized</var>.[[Hours]], <var>serialized</var>.[[Minutes]],
<var>serialized</var>.[[Seconds]], <var>serialized</var>.[[Milliseconds]],
<var>serialized</var>.[[Microseconds]], <var>serialized</var>.[[Nanoseconds]]
&raquo;).</p></li>
</ol>
</li>

<li>
<p>Otherwise, if <var>serialized</var>.[[Type]] is "Temporal.Instant", then:</p>

<ol>
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span
data-x="Temporal.Instant">%Temporal.Instant%</span>, &laquo;
<var>serialized</var>.[[Nanoseconds]] &raquo;).</p></li>
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span>%Temporal.Instant%</span>,
&laquo; <var>serialized</var>.[[Nanoseconds]] &raquo;).</p></li>
</ol>
</li>

Expand All @@ -9109,8 +9103,8 @@ o.myself = o;</code></pre>
<li><p>Let <var>calendar</var> be !
<span>GetBuiltinCalendar</span>(<var>serialized</var>.[[Calendar]]).</p></li>

<li><p>Set <var>value</var> to ! <span>Construct</span>(<span
data-x="Temporal.PlainYearMonth">%Temporal.PlainYearMonth%</span>, &laquo;
<li><p>Set <var>value</var> to !
<span>Construct</span>(<span>%Temporal.PlainYearMonth%</span>, &laquo;
<var>serialized</var>.[[ISOYear]], <var>serialized</var>.[[ISOMonth]], <var>calendar</var>,
<var>serialized</var>.[[ISODay]] &raquo;).</p></li>
</ol>
Expand All @@ -9123,20 +9117,18 @@ o.myself = o;</code></pre>
<li><p>Let <var>calendar</var> be !
<span>GetBuiltinCalendar</span>(<var>serialized</var>.[[Calendar]]).</p></li>

<li><p>Set <var>value</var> to ! <span>Construct</span>(<span
data-x="Temporal.PlainMonthDay">%Temporal.PlainMonthDay%</span>, &laquo;
<var>serialized</var>.[[ISOMonth]], <var>serialized</var>.[[ISODay]], <var>calendar</var>,
<var>serialized</var>.[[ISOYear]] &raquo;).</p></li>
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span>%Temporal.PlainMonthDay%</span>,
&laquo; <var>serialized</var>.[[ISOMonth]], <var>serialized</var>.[[ISODay]],
<var>calendar</var>, <var>serialized</var>.[[ISOYear]] &raquo;).</p></li>
</ol>
</li>

<li>
<p>Otherwise, if <var>serialized</var>.[[Type]] is "Temporal.TimeZone", then:</p>

<ol>
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span
data-x="Temporal.TimeZone">%Temporal.TimeZone%</span>, &laquo;
<var>serialized</var>.[[Identifier]] &raquo;).</p></li>
<li><p>Set <var>value</var> to ! <span>Construct</span>(<span>%Temporal.TimeZone%</span>,
&laquo; <var>serialized</var>.[[Identifier]] &raquo;).</p></li>
</ol>
</li>

Expand Down

0 comments on commit 4338a93

Please sign in to comment.