Skip to content

Commit 1f9bd95

Browse files
committed
[css-syntax] Add a proper definition of surrogate code point.
1 parent 2515171 commit 1f9bd95

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

css-syntax/Overview.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,11 @@ <h3 data-level=4.2 id=definitions0><span class=secno>4.2 </span><span class=cont
727727
<dt><dfn data-dfn-type=dfn id=whitespace>whitespace</dfn>
728728
<dd>A <a href=#newline>newline</a>, U+0009 CHARACTER TABULATION, or U+0020 SPACE.
729729

730+
<dt><dfn data-dfn-type=dfn id=surrogate-code-point>surrogate code point</dfn>
731+
<dd>
732+
A <a href=#code-point>code point</a> between U+D800 and U+DFFF inclusive.
733+
See <a href=http://www.unicode.org/glossary/#surrogate_code_point>Unicode surrogate code point</a>.
734+
730735
<dt><dfn data-dfn-type=dfn id=maximum-allowed-code-point>maximum allowed code point</dfn>
731736
<dd>The greatest <a href=#code-point>code point</a> defined by Unicode. This is currently U+10FFFF.
732737

@@ -1314,15 +1319,11 @@ <h4 data-level=4.3.7 id=consume-an-escaped-code-point><span class=secno>4.3.7 </
13141319
consume it as well.
13151320
Interpret the <a href=#hex-digit>hex digits</a> as a hexadecimal number.
13161321
If this number is zero,
1317-
or is between U+D800 and U+DFFF inclusive,
1322+
or is for a <a href=#surrogate-code-point>surrogate code point</a>,
13181323
or is greater than the <a href=#maximum-allowed-code-point>maximum allowed code point</a>,
13191324
return U+FFFD REPLACEMENT CHARACTER (�).
13201325
Otherwise, return the <a href=#code-point>code point</a> with that value.
13211326

1322-
<p class=note>
1323-
U+D800 to U+DFFF are the
1324-
<a href=http://www.unicode.org/glossary/#surrogate_code_point>surrogate code points</a>.
1325-
13261327
<dt>EOF code point
13271328
<dd>
13281329
Return U+FFFD REPLACEMENT CHARACTER (�).
@@ -3315,6 +3316,7 @@ <h2 class="no-num no-ref" id=index><span class=content>
33153316
<li>&lt;stylesheet&gt;, <a href=#typedef-stylesheet title="section 7.1">7.1</a>
33163317
<li>〈substring-match〉, <a href=#tokendef-substring-match title="section 4">4</a>
33173318
<li>〈suffix-match〉, <a href=#tokendef-suffix-match title="section 4">4</a>
3319+
<li>surrogate code point, <a href=#surrogate-code-point title="section 4.2">4.2</a>
33183320
<li>top-level flag, <a href=#top-level-flag title="section 5.4.1">5.4.1</a>
33193321
<li>〈unicode-range〉, <a href=#tokendef-unicode-range title="section 4">4</a>
33203322
<li>uppercase letter, <a href=#uppercase-letter title="section 4.2">4.2</a>

css-syntax/Overview.src.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,10 @@ <h3>
609609
<dt><dfn>whitespace</dfn>
610610
<dd>A <a>newline</a>, U+0009 CHARACTER TABULATION, or U+0020 SPACE.
611611

612+
<dt><dfn>surrogate code point</dfn>
613+
<dd>
614+
A <a>code point</a> between U+D800 and U+DFFF inclusive.
615+
612616
<dt><dfn>maximum allowed code point</dfn>
613617
<dd>The greatest <a>code point</a> defined by Unicode. This is currently U+10FFFF.
614618

@@ -1196,15 +1200,11 @@ <h4>
11961200
consume it as well.
11971201
Interpret the <a>hex digits</a> as a hexadecimal number.
11981202
If this number is zero,
1199-
or is between U+D800 and U+DFFF inclusive,
1203+
or is for a <a>surrogate code point</a>,
12001204
or is greater than the <a>maximum allowed code point</a>,
12011205
return U+FFFD REPLACEMENT CHARACTER (�).
12021206
Otherwise, return the <a>code point</a> with that value.
12031207

1204-
<p class=note>
1205-
U+D800 to U+DFFF are the
1206-
<a href="http://www.unicode.org/glossary/#surrogate_code_point">surrogate code points</a>.
1207-
12081208
<dt>EOF code point
12091209
<dd>
12101210
Return U+FFFD REPLACEMENT CHARACTER (�).

0 commit comments

Comments
 (0)