Skip to content

Commit 1d2b501

Browse files
committed
Replace out-of-range escaped with U+FFFD.
1 parent 7137bc4 commit 1d2b501

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

css3-syntax/parsing.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,10 @@ <h4>
14341434
<i>whitespace</i>,
14351435
consume it as well.
14361436
Interpret the <i>hex digits</i> as a hexadecimal number.
1437-
Return the character with that codepoint.
1437+
If this number is greater than
1438+
the current maximum allowed codepoint in Unicode (currently U+10FFFF),
1439+
return U+FFFD REPLACEMENT CHARACTER.
1440+
Otherwise, return the character with that codepoint.
14381441

14391442
<dt>anything else
14401443
<dd>

0 commit comments

Comments
 (0)