[css-syntax] Return U+FFFD for escaped surrogate code points.
authorSimon Sapin <simon.sapin@exyr.org>
Mon, 12 Aug 2013 15:17:33 +0100
changeset 8808059a3bea5563
parent 8807 bfc93c31b961
child 8809 f939462f029c
[css-syntax] Return U+FFFD for escaped surrogate code points.
css-syntax/Overview.html
css-syntax/Overview.src.html
     1.1 --- a/css-syntax/Overview.html	Mon Aug 12 13:22:47 2013 +0200
     1.2 +++ b/css-syntax/Overview.html	Mon Aug 12 15:17:33 2013 +0100
     1.3 @@ -12,7 +12,7 @@
     1.4  </a></p>
     1.5    <h1 class="p-name no-ref" id=title>CSS Syntax Module Level 3</h1>
     1.6    <h2 class="no-num no-toc no-ref" id=subtitle><span class=content>Editor's Draft,
     1.7 -    <span class=dt-updated><span class=value-title title=20130809>9 August 2013</span></span></span></h2>
     1.8 +    <span class=dt-updated><span class=value-title title=20130812>12 August 2013</span></span></span></h2>
     1.9    <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>
    1.10  <dt>Feedback:</dt>
    1.11      <dd><a href="mailto:www-style@w3.org?subject=%5Bcss-syntax%5D%20feedback">www-style@w3.org</a>
    1.12 @@ -1306,10 +1306,15 @@
    1.13  			consume it as well.
    1.14  			Interpret the <a href=#hex-digit>hex digits</a> as a hexadecimal number.
    1.15  			If this number is zero,
    1.16 +			or is between U+D800 and U+DFFF included,
    1.17  			or is greater than the <a href=#maximum-allowed-codepoint>maximum allowed codepoint</a>,
    1.18  			return U+FFFD REPLACEMENT CHARACTER (�).
    1.19  			Otherwise, return the character with that codepoint.
    1.20  
    1.21 +			<p class=note>
    1.22 +				U+D800 to U+DFFF are the
    1.23 +				<a href=http://www.unicode.org/glossary/#surrogate_code_point>surrogate code points</a>.
    1.24 +
    1.25  		<dt>EOF character
    1.26  		<dd>
    1.27  			Return U+FFFD REPLACEMENT CHARACTER (�).
     2.1 --- a/css-syntax/Overview.src.html	Mon Aug 12 13:22:47 2013 +0200
     2.2 +++ b/css-syntax/Overview.src.html	Mon Aug 12 15:17:33 2013 +0100
     2.3 @@ -1189,10 +1189,15 @@
     2.4  			consume it as well.
     2.5  			Interpret the <a>hex digits</a> as a hexadecimal number.
     2.6  			If this number is zero,
     2.7 +			or is between U+D800 and U+DFFF included,
     2.8  			or is greater than the <a>maximum allowed codepoint</a>,
     2.9  			return U+FFFD REPLACEMENT CHARACTER (�).
    2.10  			Otherwise, return the character with that codepoint.
    2.11  
    2.12 +			<p class=note>
    2.13 +				U+D800 to U+DFFF are the
    2.14 +				<a href="http://www.unicode.org/glossary/#surrogate_code_point">surrogate code points</a>.
    2.15 +
    2.16  		<dt>EOF character
    2.17  		<dd>
    2.18  			Return U+FFFD REPLACEMENT CHARACTER (�).