@@ -5738,15 +5738,15 @@ tokens.
5738
5738
<h4 oldids="dom-float" id="idl-float" interface>float</h4>
5739
5739
5740
5740
The {{float}} type is a floating point numeric
5741
- type that corresponds to the set of finite single-precision 32 bit
5741
+ type that corresponds to the set of finite single-precision 32- bit
5742
5742
IEEE 754 floating point numbers. [[!IEEE-754]]
5743
5743
5744
5744
{{float}} constant values in IDL are
5745
5745
represented with <emu-t class="regex"><a href="#prod-decimal">decimal</a></emu-t>
5746
5746
tokens.
5747
5747
5748
5748
<p class="warning">
5749
- Unless there are specific reasons to use a 32 bit floating point type,
5749
+ Unless there are specific reasons to use a 32- bit floating point type,
5750
5750
specifications should use
5751
5751
{{double}} rather than {{float}},
5752
5752
since the set of values that a {{double}} can
@@ -5756,7 +5756,7 @@ tokens.
5756
5756
<h4 oldids="dom-unrestrictedfloat" id="idl-unrestricted-float" interface>unrestricted float</h4>
5757
5757
5758
5758
The {{unrestricted float}} type is a floating point numeric
5759
- type that corresponds to the set of all possible single-precision 32 bit
5759
+ type that corresponds to the set of all possible single-precision 32- bit
5760
5760
IEEE 754 floating point numbers, finite, non-finite, and special "not a number" values (NaNs). [[!IEEE-754]]
5761
5761
5762
5762
{{unrestricted float}} constant values in IDL are
@@ -5766,7 +5766,7 @@ tokens.
5766
5766
<h4 oldids="dom-double" id="idl-double" interface>double</h4>
5767
5767
5768
5768
The {{double}} type is a floating point numeric
5769
- type that corresponds to the set of finite double-precision 64 bit
5769
+ type that corresponds to the set of finite double-precision 64- bit
5770
5770
IEEE 754 floating point numbers. [[!IEEE-754]]
5771
5771
5772
5772
{{double}} constant values in IDL are
@@ -5776,7 +5776,7 @@ tokens.
5776
5776
<h4 oldids="dom-unrestricteddouble" id="idl-unrestricted-double" interface>unrestricted double</h4>
5777
5777
5778
5778
The {{unrestricted double}} type is a floating point numeric
5779
- type that corresponds to the set of all possible double-precision 64 bit
5779
+ type that corresponds to the set of all possible double-precision 64- bit
5780
5780
IEEE 754 floating point numbers, finite, non-finite, and special "not a number" values (NaNs). [[!IEEE-754]]
5781
5781
5782
5782
{{unrestricted double}} constant values in IDL are
@@ -5794,18 +5794,12 @@ The {{bigint}} type is an arbitrary integer type, unrestricted in range.
5794
5794
5795
5795
The {{DOMString}} type corresponds to [=strings=].
5796
5796
5797
- Note: Note also that <emu-val>null</emu-val>
5798
- is not a value of type {{DOMString}}.
5799
- To allow <emu-val>null</emu-val>, a
5800
- [=nullable type|nullable=] {{DOMString}},
5801
- written as <code>DOMString?</code> in IDL, needs to be used.
5797
+ Note: <emu-val>null</emu-val> is not a value of type {{DOMString}}. To allow
5798
+ <emu-val>null</emu-val>, a [=nullable type|nullable=] {{DOMString}}, written as
5799
+ <code>DOMString?</code> in IDL, needs to be used.
5802
5800
5803
- Nothing in this specification requires a {{DOMString}}
5804
- value to be a valid UTF-16 string. For example, a {{DOMString}}
5805
- value might include unmatched [=surrogate=] [=code points=]. However, authors
5806
- of specifications using Web IDL might want to obtain a sequence of
5807
- [=scalar values=] given a particular sequence of
5808
- [=code units=].
5801
+ Note: A {{DOMString}} value might include unmatched [=surrogate=] [=code points=]. Use {{USVString}}
5802
+ if this is not desirable.
5809
5803
5810
5804
There is no way to represent a constant {{DOMString}}
5811
5805
value in IDL, although {{DOMString}} [=dictionary member=] [=dictionary member/default values=]
@@ -5815,10 +5809,7 @@ can be set to [=value of string literal tokens|the value=] of a
5815
5809
5816
5810
<h4 oldids="dom-ByteString" id="idl-ByteString" interface>ByteString</h4>
5817
5811
5818
- The {{ByteString}} type
5819
- corresponds to [=byte sequences=].
5820
- Such sequences might be interpreted as UTF-8 encoded strings [[!RFC3629]]
5821
- or strings in some other 8-bit-per-code-unit encoding, although this is not required.
5812
+ The {{ByteString}} type corresponds to [=byte sequences=].
5822
5813
5823
5814
There is no way to represent a constant {{ByteString}}
5824
5815
value in IDL, although {{ByteString}} [=dictionary member=] [=dictionary member/default values=]
@@ -5833,10 +5824,10 @@ can be set to [=value of string literal tokens|the value=] of a
5833
5824
strings should be represented with
5834
5825
{{DOMString}} values, even if it is expected
5835
5826
that values of the string will always be in ASCII or some
5836
- 8 bit character encoding. [=sequence types|Sequences=] or
5827
+ 8- bit character encoding. [=sequence types|Sequences=] or
5837
5828
[=frozen array type|frozen arrays=] with {{octet}} or {{byte}}
5838
5829
elements, {{Uint8Array}}, or {{Int8Array}} should be used for holding
5839
- 8 bit data rather than {{ByteString}}.
5830
+ 8- bit data rather than {{ByteString}}.
5840
5831
</p>
5841
5832
5842
5833
@@ -6354,7 +6345,7 @@ data. The table below lists these types and the kind of buffer or view they rep
6354
6345
<dfn id="idl-BigUint64Array" interface>BigUint64Array</dfn></td>
6355
6346
<td>A view on to an {{ArrayBuffer}} that exposes it as an array of unsigned integers of the given size in bits</td></tr>
6356
6347
<tr><td><dfn id="idl-Uint8ClampedArray" interface>Uint8ClampedArray</dfn></td>
6357
- <td>A view on to an {{ArrayBuffer}} that exposes it as an array of unsigned 8 bit integers with clamped conversions</td></tr>
6348
+ <td>A view on to an {{ArrayBuffer}} that exposes it as an array of unsigned 8- bit integers with clamped conversions</td></tr>
6358
6349
<tr><td><dfn id="idl-Float32Array" interface>Float32Array</dfn>,<br/>
6359
6350
<dfn id="idl-Float64Array" interface>Float64Array</dfn></td>
6360
6351
<td>A view on to an {{ArrayBuffer}} that exposes it as an array of IEEE 754 floating point numbers of the given size in bits</td></tr>
@@ -7302,7 +7293,7 @@ In effect, where <var ignore>x</var> is a Number value,
7302
7293
Note: Since there is only a single ECMAScript <emu-val>NaN</emu-val> value,
7303
7294
it must be canonicalized to a particular single precision IEEE 754 NaN value. The NaN value
7304
7295
mentioned above is chosen simply because it is the quiet NaN with the lowest
7305
- value when its bit pattern is interpreted as an unsigned 32 bit integer.
7296
+ value when its bit pattern is interpreted as an unsigned 32- bit integer.
7306
7297
7307
7298
<div id="unrestricted-float-to-es" algorithm="convert an unrestricted float to an ECMAScript value">
7308
7299
@@ -7358,7 +7349,7 @@ value when its bit pattern is interpreted as an unsigned 32 bit integer.
7358
7349
Note: Since there is only a single ECMAScript <emu-val>NaN</emu-val> value,
7359
7350
it must be canonicalized to a particular double precision IEEE 754 NaN value. The NaN value
7360
7351
mentioned above is chosen simply because it is the quiet NaN with the lowest
7361
- value when its bit pattern is interpreted as an unsigned 64 bit integer.
7352
+ value when its bit pattern is interpreted as an unsigned 64- bit integer.
7362
7353
7363
7354
<div id="unrestricted-double-to-es" algorithm="convert an unrestricted double to an ECMAScript value">
7364
7355
0 commit comments