@@ -788,13 +788,13 @@ Definitions</h3>
788
788
<dd>
789
789
A <a>code point</a> with a value equal to or greater than U+0080 <control>.
790
790
791
- <dt> <dfn export> name-start code point</dfn>
791
+ <dt> <dfn export lt="identifier-start code point | name-start code point" oldids="name-start-code-point">identifier -start code point</dfn>
792
792
<dd>
793
793
A <a>letter</a> ,
794
794
a <a>non-ASCII code point</a> ,
795
795
or U+005F LOW LINE (_).
796
796
797
- <dt> <dfn export> name code point</dfn>
797
+ <dt> <dfn export lt="identifier code point | name code point" oldids="name-code-point">identifier code point</dfn>
798
798
<dd>
799
799
A <a>name-start code point</a> ,
800
800
a <a>digit</a> ,
@@ -821,13 +821,15 @@ Definitions</h3>
821
821
<dt> <dfn export>maximum allowed code point</dfn>
822
822
<dd> The greatest <a>code point</a> defined by Unicode: U+10FFFF.
823
823
824
- <dt> <dfn export>identifier</dfn>
824
+ <dt> <dfn export lt="identifier | ident | CSS identifier | CSS ident" oldids="css-identifier" >identifier</dfn>
825
825
<dd>
826
- A portion of the CSS source that has the same syntax as an <<ident-token>> .
827
- Also appears in <<at-keyword-token>> ,
828
- <<function-token>> ,
829
- <<hash-token>> with the "id" type flag,
830
- and the unit of <<dimension-token>> .
826
+ A sequence of [=code points=] that has the same syntax as an <<ident-token>> .
827
+
828
+ Note: The part of an <<at-keyword-token>> after the "@",
829
+ the part of a <<hash-token>> (with the "id" type flag) after the "#",
830
+ the part of a <<function-token>> before the "(",
831
+ and the unit of a <<dimension-token>>
832
+ are all [=identifiers=] .
831
833
832
834
<dt> <dfn>representation</dfn>
833
835
<dd>
@@ -896,7 +898,7 @@ Consume a token</h4>
896
898
897
899
<dt> U+0023 NUMBER SIGN (#)
898
900
<dd>
899
- If the <a>next input code point</a> is a <a>name code point</a>
901
+ If the <a>next input code point</a> is an <a>identifier code point</a>
900
902
or the <a lt="next input code point">next two input code points</a>
901
903
<a>are a valid escape</a> ,
902
904
then:
@@ -910,7 +912,7 @@ Consume a token</h4>
910
912
set the <<hash-token>> ’s type flag to "id".
911
913
912
914
<li>
913
- <a>Consume a name </a> ,
915
+ <a>Consume an identifier </a> ,
914
916
and set the <<hash-token>> ’s value to the returned string.
915
917
916
918
<li>
@@ -1011,7 +1013,7 @@ Consume a token</h4>
1011
1013
<dd>
1012
1014
If the <a lt="next input code point">next 3 input code points</a>
1013
1015
<a>would start an identifier</a> ,
1014
- <a>consume a name </a> ,
1016
+ <a>consume an identifier </a> ,
1015
1017
create an <<at-keyword-token>> with its value set to the returned value,
1016
1018
and return it.
1017
1019
@@ -1053,7 +1055,7 @@ Consume a token</h4>
1053
1055
<a>consume a numeric token</a> ,
1054
1056
and return it.
1055
1057
1056
- <dt> <a>name -start code point</a>
1058
+ <dt> <a>identifier -start code point</a>
1057
1059
<dd>
1058
1060
<a>Reconsume the current input code point</a> ,
1059
1061
<a>consume an ident-like token</a> ,
@@ -1105,7 +1107,7 @@ Consume a numeric token</h4>
1105
1107
<li> Create a <<dimension-token>> with the same value and type flag as |number|,
1106
1108
and a unit set initially to the empty string.
1107
1109
1108
- <li> <a>Consume a name </a> .
1110
+ <li> <a>Consume an identifier </a> .
1109
1111
Set the <<dimension-token>> ’s unit to the returned value.
1110
1112
1111
1113
<li> Return the <<dimension-token>> .
@@ -1128,7 +1130,7 @@ Consume an ident-like token</h4>
1128
1130
This section describes how to <dfn>consume an ident-like token</dfn> from a stream of <a>code points</a> .
1129
1131
It returns an <<ident-token>> , <<function-token>> , <<url-token>> , or <<bad-url-token>> .
1130
1132
1131
- <a>Consume a name </a> , and let |string| be the result.
1133
+ <a>Consume an identifier </a> , and let |string| be the result.
1132
1134
1133
1135
If |string|’s value is an <a>ASCII case-insensitive</a> match for "url",
1134
1136
and the <a>next input code point</a> is U+0028 LEFT PARENTHESIS ((),
@@ -1362,13 +1364,13 @@ Check if three code points would start an identifier</dfn></h4>
1362
1364
<dl>
1363
1365
<dt> U+002D HYPHEN-MINUS
1364
1366
<dd>
1365
- If the second <a>code point</a> is a <a>name -start code point</a>
1367
+ If the second <a>code point</a> is an <a>identifier -start code point</a>
1366
1368
or a U+002D HYPHEN-MINUS,
1367
1369
or the second and third <a>code points</a> <a>are a valid escape</a> ,
1368
1370
return true.
1369
1371
Otherwise, return false.
1370
1372
1371
- <dt> <a>name -start code point</a>
1373
+ <dt> <a>identifier -start code point</a>
1372
1374
<dd>
1373
1375
Return true.
1374
1376
@@ -1433,9 +1435,9 @@ Check if three code points would start a number</h4>
1433
1435
1434
1436
1435
1437
<h4 id="consume-name">
1436
- Consume a name </h4>
1438
+ Consume an identifier </h4>
1437
1439
1438
- This section describes how to <dfn>consume a name </dfn> from a stream of <a>code points</a> .
1440
+ This section describes how to <dfn>consume an identifier </dfn> from a stream of <a>code points</a> .
1439
1441
It returns a string containing
1440
1442
the largest name that can be formed from adjacent <a>code points</a> in the stream, starting from the first.
1441
1443
@@ -1450,7 +1452,7 @@ Consume a name</h4>
1450
1452
Repeatedly consume the <a>next input code point</a> from the stream:
1451
1453
1452
1454
<dl>
1453
- <dt> <a>name code point</a>
1455
+ <dt> <a>identifier code point</a>
1454
1456
<dd>
1455
1457
Append the <a>code point</a> to <var> result</var> .
1456
1458
@@ -3695,7 +3697,7 @@ Changes from CSS 2.1 and Selectors Level 3</h3>
3695
3697
The definition of <a>non-ASCII code point</a> was changed
3696
3698
to be consistent with every definition of ASCII.
3697
3699
This affects <a>code points</a> U+0080 to U+009F,
3698
- which are now <a>name code points</a> rather than <<delim-token>> s,
3700
+ which are now <a>identifier code points</a> rather than <<delim-token>> s,
3699
3701
like the rest of <a>non-ASCII code points</a> .
3700
3702
3701
3703
<li>
0 commit comments