Skip to content

Commit 1fa8c43

Browse files
Ms2gerdomenic
authored andcommitted
Clarify the interpretation of string literal tokens
Fixes #141.
1 parent 323cf3f commit 1fa8c43

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

index.bs

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,7 +2274,8 @@ it is interpreted in the same way as for a [=constant=].
22742274
<div id="string-literal" algorithm="value of string literal tokens">
22752275
Optional argument default values can also be specified using a
22762276
<emu-t class="regex"><a href="#prod-string">string</a></emu-t>
2277-
token, whose value is a [=string type=] determined as follows:
2277+
token, whose <dfn lt="value of string literal tokens">value</dfn> is a
2278+
[=string type=] determined as follows:
22782279

22792280
1. Let |S| be the sequence of [=Unicode scalar values=] matched by
22802281
the <emu-t class="regex"><a href="#prod-string">string</a></emu-t> token
@@ -5786,9 +5787,10 @@ of specifications using Web IDL might want to obtain a sequence of
57865787
</div>
57875788

57885789
There is no way to represent a constant {{DOMString}}
5789-
value in IDL, although {{DOMString}} [=dictionary member=]
5790-
and [=optional argument|operation optional argument=] default values
5791-
can be specified using a <emu-t class="regex"><a href="#prod-string">string</a></emu-t> literal.
5790+
value in IDL, although {{DOMString}} [=dictionary member=] [=dictionary member/default values=]
5791+
and [=optional argument|operation optional argument=] [=optional argument/default values=]
5792+
can be set to [=value of string literal tokens|the value=] of a
5793+
<emu-t class="regex"><a href="#prod-string">string</a></emu-t> literal.
57925794

57935795
The [=type name=] of the
57945796
{{DOMString}} type is "<code>String</code>".
@@ -5802,9 +5804,10 @@ Such sequences might be interpreted as UTF-8 encoded strings [[!RFC3629]]
58025804
or strings in some other 8-bit-per-code-unit encoding, although this is not required.
58035805

58045806
There is no way to represent a constant {{ByteString}}
5805-
value in IDL, although {{ByteString}} [=dictionary member=]
5806-
and [=optional argument|operation optional argument=] default values
5807-
can be specified using a <emu-t class="regex"><a href="#prod-string">string</a></emu-t> literal.
5807+
value in IDL, although {{ByteString}} [=dictionary member=] [=dictionary member/default values=]
5808+
and [=optional argument|operation optional argument=] [=optional argument/default values=]
5809+
can be set to [=value of string literal tokens|the value=] of a
5810+
<emu-t class="regex"><a href="#prod-string">string</a></emu-t> literal.
58085811

58095812
The [=type name=] of the
58105813
{{ByteString}} type is "<code>ByteString</code>".
@@ -5832,9 +5835,10 @@ which are all of the Unicode code points apart from the
58325835
surrogate code points.
58335836

58345837
There is no way to represent a constant {{USVString}}
5835-
value in IDL, although {{USVString}} [=dictionary member=]
5836-
and [=optional argument|operation optional argument=] default values
5837-
can be specified using a <emu-t class="regex"><a href="#prod-string">string</a></emu-t> literal.
5838+
value in IDL, although {{USVString}} [=dictionary member=] [=dictionary member/default values=]
5839+
and [=optional argument|operation optional argument=] [=optional argument/default values=]
5840+
can be set to [=value of string literal tokens|the value=] of a
5841+
<emu-t class="regex"><a href="#prod-string">string</a></emu-t> literal.
58385842

58395843
The [=type name=] of the
58405844
{{USVString}} type is "<code>USVString</code>".
@@ -5929,8 +5933,9 @@ refer to a type whose values are the set of strings (sequences of
59295933
[=enumeration values|enumeration’s values=].
59305934

59315935
Like {{DOMString}}, there is no way to represent a constant [=enumeration=]
5932-
value in IDL, although enumeration-typed [=dictionary member=]
5933-
[=dictionary member/default values=] can be specified using a
5936+
value in IDL, although enumeration-typed [=dictionary member=] [=dictionary member/default values=]
5937+
and [=optional argument|operation optional argument=] [=optional argument/default values=]
5938+
can be set to [=value of string literal tokens|the value=] of a
59345939
<emu-t class="regex"><a href="#prod-string">string</a></emu-t> literal.
59355940

59365941
The [=type name=] of an enumeration type

0 commit comments

Comments
 (0)