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

Normative: Revert U+2212 (Unicode minus sign) as a valid character in timezone offsets #3334

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
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
47 changes: 6 additions & 41 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -33183,48 +33183,14 @@ <h1>Time Zone Offset String Format</h1>
<p>
ECMAScript defines a string interchange format for UTC offsets, derived from ISO 8601.
The format is described by the following grammar.
The usage of Unicode code points in this grammar is listed in <emu-xref href="#table-time-zone-offset-string-code-points"></emu-xref>.
</p>

<emu-table id="table-time-zone-offset-string-code-points" caption="Time Zone Offset String Code Points">
<table>
<thead>
<tr>
<th>
Code Point
</th>
<th>
Unicode Name
</th>
<th>
Abbreviation
</th>
</tr>
</thead>
<tr>
<td>
`U+2212`
</td>
<td>
MINUS SIGN
</td>
<td>
&lt;MINUS>
</td>
</tr>
</table>
</emu-table>

<h2>Syntax</h2>
<emu-grammar type="definition">
UTCOffset :::
TemporalSign Hour
TemporalSign Hour HourSubcomponents[+Extended]
TemporalSign Hour HourSubcomponents[~Extended]

TemporalSign :::
ASCIISign
&lt;MINUS&gt;
ASCIISign Hour
ASCIISign Hour HourSubcomponents[+Extended]
ASCIISign Hour HourSubcomponents[~Extended]

ASCIISign ::: one of
`+` `-`
Expand Down Expand Up @@ -33298,9 +33264,9 @@ <h1>
<emu-alg>
1. Let _parseResult_ be ParseText(_offsetString_, |UTCOffset|).
1. Assert: _parseResult_ is not a List of errors.
1. Assert: _parseResult_ contains a |TemporalSign| Parse Node.
1. Let _parsedSign_ be the source text matched by the |TemporalSign| Parse Node contained within _parseResult_.
1. If _parsedSign_ is the single code point U+002D (HYPHEN-MINUS) or U+2212 (MINUS SIGN), then
1. Assert: _parseResult_ contains a |ASCIISign| Parse Node.
1. Let _parsedSign_ be the source text matched by the |ASCIISign| Parse Node contained within _parseResult_.
1. If _parsedSign_ is the single code point U+002D (HYPHEN-MINUS), then
1. Let _sign_ be -1.
1. Else,
1. Let _sign_ be 1.
Expand Down Expand Up @@ -50091,7 +50057,6 @@ <h1>Number Conversions</h1>
<emu-annex id="sec-time-zone-offset-string-format">
<h1>Time Zone Offset String Format</h1>
<emu-prodref name="UTCOffset"></emu-prodref>
<emu-prodref name="TemporalSign"></emu-prodref>
<emu-prodref name="ASCIISign"></emu-prodref>
<emu-prodref name="Hour"></emu-prodref>
<emu-prodref name="HourSubcomponents"></emu-prodref>
Expand Down
Loading