You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1592,9 +1589,9 @@ The value of the boolean literal tokens <emu-t>true</emu-t> and
1592
1589
The value of an <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t> token
1593
1590
is an integer whose value is determined as follows:
1594
1591
1595
-
1. Let |S| be the sequence of characters matched by the <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t> token.
1592
+
1. Let |S| be the sequence of [=scalar values=] matched by the <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t> token.
1596
1593
1. Let |sign| be −1 if |S| begins with <span class="char">U+002D HYPHEN-MINUS ("-")</span>, and 1 otherwise.
1597
-
1. Let |base| be the base of the number based on the characters that follow the optional leading <span class="char">U+002D HYPHEN-MINUS ("-")</span> character:
1594
+
1. Let |base| be the base of the number based on the [=scalar values=] that follow the optional leading <span class="char">U+002D HYPHEN-MINUS ("-")</span> character:
1598
1595
<dl class="switch">
1599
1596
: <span class="char">U+0030 DIGIT ZERO ("0")</span>, <span class="char">U+0058 LATIN CAPITAL LETTER X ("X")</span>
1600
1597
: <span class="char">U+0030 DIGIT ZERO ("0")</span>, <span class="char">U+0078 LATIN SMALL LETTER X ("x")</span>
@@ -1604,8 +1601,8 @@ The value of the boolean literal tokens <emu-t>true</emu-t> and
1604
1601
: <span class="char">Otherwise</span>
1605
1602
:: The base is 10.
1606
1603
</dl>
1607
-
1. Let |number| be the result of interpreting all remaining characters following the optional leading <span class="char">U+002D HYPHEN-MINUS ("-")</span>
1608
-
character and any characters indicating the base as an integer specified in base |base|.
1604
+
1. Let |number| be the result of interpreting all remaining [=scalar values=] following the optional leading <span class="char">U+002D HYPHEN-MINUS ("-")</span>
1605
+
character and any [=scalar values=] indicating the base as an integer specified in base |base|.
1609
1606
1. Return |sign| × |number|.
1610
1607
</div>
1611
1608
@@ -1621,7 +1618,7 @@ lie outside the valid range of values for its type, as given in
1621
1618
double-precision floating point number, depending on the type of the
1622
1619
constant, dictionary member or optional argument it is being used as the value for, determined as follows:
1623
1620
1624
-
1. Let |S| be the sequence of characters matched by the
1621
+
1. Let |S| be the sequence of [=scalar values=] matched by the
1. Let |result| be the Mathematical Value that would be obtained if
1627
1624
|S| were parsed as an ECMAScript <emu-nt>[=NumericLiteral=]</emu-nt>.
@@ -2254,9 +2251,9 @@ the value is the IDL {{undefined}} value.
2254
2251
token, whose <dfn lt="value of string literal tokens">value</dfn> is a
2255
2252
[=string type=] determined as follows:
2256
2253
2257
-
1. Let |S| be the sequence of [=Unicode scalar values=] matched by
2254
+
1. Let |S| be the sequence of [=scalar values=] matched by
2258
2255
the <emu-t class="regex"><a href="#prod-string">string</a></emu-t> token
2259
-
with its leading and trailing <span class="char">U+0022 QUOTATION MARK ('"')</span> characters removed.
2256
+
with its leading and trailing <span class="char">U+0022 QUOTATION MARK ('"')</span> [=scalar values=] removed.
2260
2257
1. Depending on the type of the argument:
2261
2258
<dl class="switch">
2262
2259
: {{DOMString}}
@@ -5975,9 +5972,9 @@ written as <code>DOMString?</code> in IDL, needs to be used.
5975
5972
5976
5973
Nothing in this specification requires a {{DOMString}}
5977
5974
value to be a valid UTF-16 string. For example, a {{DOMString}}
5978
-
value might include unmatched surrogate pair characters. However, authors
5975
+
value might include unmatched [=surrogate=] [=code points=]. However, authors
5979
5976
of specifications using Web IDL might want to obtain a sequence of
5980
-
[=Unicode scalar values=] given a particular sequence of
5977
+
[=scalar values=] given a particular sequence of
5981
5978
[=code units=].
5982
5979
5983
5980
There is no way to represent a constant {{DOMString}}
@@ -6017,7 +6014,7 @@ can be set to [=value of string literal tokens|the value=] of a
6017
6014
6018
6015
The {{USVString}} type
6019
6016
corresponds to the set of all possible sequences of
6020
-
[=Unicode scalar values=],
6017
+
[=scalar values=],
6021
6018
which are all of the Unicode code points apart from the
6022
6019
surrogate code points.
6023
6020
@@ -6030,8 +6027,8 @@ can be set to [=value of string literal tokens|the value=] of a
6030
6027
<p class="warning">
6031
6028
Specifications should only use
6032
6029
{{USVString}} for APIs that perform
6033
-
text processing and need a string of Unicode
6034
-
scalar values to operate on. Most APIs that use strings
6030
+
text processing and need a string of
6031
+
[=scalar values=] to operate on. Most APIs that use strings
6035
6032
should instead be using {{DOMString}},
6036
6033
which does not make any interpretations of the [=code units=]
6037
6034
in the string. When in doubt, use {{DOMString}}.
@@ -7638,15 +7635,15 @@ value when its bit pattern is interpreted as an unsigned 64 bit integer.
7638
7635
1. Let |string| be the result of [=converted to an IDL value|converting=] |V|
7639
7636
to a {{DOMString}}.
7640
7637
1. Return an IDL {{USVString}} value that is the result of
7641
-
[=string/convert|converting=] |string| to a sequence of [=Unicode scalar values=].
7638
+
[=string/convert|converting=] |string| to a sequence of [=scalar values=].
7642
7639
</div>
7643
7640
7644
7641
<div id="USVString-to-es" algorithm="convert an USVString to an ECMAScript value">
7645
7642
7646
7643
An IDL {{USVString}} value is [=converted to an ECMAScript value|converted=]
7647
7644
to an ECMAScript value by running the following algorithm:
7648
7645
7649
-
1. Let |scalarValues| be the sequence of [=Unicode scalar values=] the {{USVString}} represents.
7646
+
1. Let |scalarValues| be the sequence of [=scalar values=] the {{USVString}} represents.
7650
7647
1. Let |string| be the sequence of [=code units=] that results from encoding |scalarValues| in UTF-16.
7651
7648
1. Return the String value that represents the same sequence of [=code units=] as |string|.
7652
7649
</div>
@@ -14894,8 +14891,7 @@ expression syntax [[!PERLRE]]) as follows:
14894
14891
</tr>
14895
14892
</table>
14896
14893
14897
-
The tokenizer operates on a sequence of Unicode characters
14898
-
[[!UNICODE]].
14894
+
The tokenizer operates on a sequence of [=scalar values=].
14899
14895
When tokenizing, the longest possible match must be used. For example, if the input
14900
14896
text is “<span class="input">a1</span>”, it is tokenized as a single <emu-t class="regex"><a href="#prod-identifier">identifier</a></emu-t>,
14901
14897
and not as a separate <emu-t class="regex"><a href="#prod-identifier">identifier</a></emu-t> and <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>.
@@ -14961,7 +14957,7 @@ The following typographic conventions are used in this document:
14961
14957
* ECMAScript classes: {{ECMAScript/Map}}
14962
14958
* ECMAScript language types: Object
14963
14959
* Code snippets: <code>a = b + obj.f()</code>
14964
-
* Unicode characters: <span class="char">U+0030 DIGIT ZERO ("0")</span>
14960
+
* Scalar values: <span class="char">U+0030 DIGIT ZERO ("0")</span>
0 commit comments