Skip to content

Commit 537cd8b

Browse files
committed
[css-syntax] Return U+FFFD for escaped surrogate code points.
1 parent 01cdeed commit 537cd8b

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

css-syntax/Overview.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</a></p>
1313
<h1 class="p-name no-ref" id=title>CSS Syntax Module Level 3</h1>
1414
<h2 class="no-num no-toc no-ref" id=subtitle><span class=content>Editor's Draft,
15-
<span class=dt-updated><span class=value-title title=20130809>9 August 2013</span></span></span></h2>
15+
<span class=dt-updated><span class=value-title title=20130812>12 August 2013</span></span></span></h2>
1616
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-syntax>http://dev.w3.org/csswg/css-syntax</a><dt>Editor's Draft:<dd><a href=http://dev.w3.org/csswg/css-syntax>http://dev.w3.org/csswg/css-syntax</a>
1717
<dt>Feedback:</dt>
1818
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-syntax%5D%20feedback">www-style@w3.org</a>
@@ -1306,10 +1306,15 @@ <h4 data-level=4.3.7 id=consume-an-escaped-character><span class=secno>4.3.7 </s
13061306
consume it as well.
13071307
Interpret the <a href=#hex-digit>hex digits</a> as a hexadecimal number.
13081308
If this number is zero,
1309+
or is between U+D800 and U+DFFF included,
13091310
or is greater than the <a href=#maximum-allowed-codepoint>maximum allowed codepoint</a>,
13101311
return U+FFFD REPLACEMENT CHARACTER (�).
13111312
Otherwise, return the character with that codepoint.
13121313

1314+
<p class=note>
1315+
U+D800 to U+DFFF are the
1316+
<a href=http://www.unicode.org/glossary/#surrogate_code_point>surrogate code points</a>.
1317+
13131318
<dt>EOF character
13141319
<dd>
13151320
Return U+FFFD REPLACEMENT CHARACTER (�).

css-syntax/Overview.src.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,10 +1189,15 @@ <h4>
11891189
consume it as well.
11901190
Interpret the <a>hex digits</a> as a hexadecimal number.
11911191
If this number is zero,
1192+
or is between U+D800 and U+DFFF included,
11921193
or is greater than the <a>maximum allowed codepoint</a>,
11931194
return U+FFFD REPLACEMENT CHARACTER (�).
11941195
Otherwise, return the character with that codepoint.
11951196

1197+
<p class=note>
1198+
U+D800 to U+DFFF are the
1199+
<a href="http://www.unicode.org/glossary/#surrogate_code_point">surrogate code points</a>.
1200+
11961201
<dt>EOF character
11971202
<dd>
11981203
Return U+FFFD REPLACEMENT CHARACTER (�).

0 commit comments

Comments
 (0)