hixie: Make invalid &#x...; character references not get converted to U+FFFD, for consistency with literal invalid characters. (whatwg r3374)

hixie: Make invalid &#x...; character references not get converted to
U+FFFD, for consistency with literal invalid characters. (whatwg r3374)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2505&r2=1.2506&f=h
http://html5.org/tools/web-apps-tracker?from=3373&to=3374

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2505
retrieving revision 1.2506
diff -u -d -r1.2505 -r1.2506
--- Overview.html 8 Jul 2009 00:56:17 -0000 1.2505
+++ Overview.html 8 Jul 2009 01:04:10 -0000 1.2506
@@ -55553,9 +55553,10 @@
     row.</p>
 
     <table><thead><tr><th>Number <th colspan="2">Unicode character
-     <tbody><tr><td>0x0D <td>U+000A <td>LINE FEED (LF)
+     <tbody><tr><td>0x00 <td>U+FFFD <td>REPLACEMENT CHARACTER
+      <tr><td>0x0D <td>U+000A <td>LINE FEED (LF)
       <tr><td>0x80 <td>U+20AC <td>EURO SIGN ('&euro;')
-      <tr><td>0x81 <td>U+FFFD <td>REPLACEMENT CHARACTER
+      <tr><td>0x81 <td>U+0081 <td>&lt;control&gt;
       <tr><td>0x82 <td>U+201A <td>SINGLE LOW-9 QUOTATION MARK ('&sbquo;')
       <tr><td>0x83 <td>U+0192 <td>LATIN SMALL LETTER F WITH HOOK ('&fnof;')
       <tr><td>0x84 <td>U+201E <td>DOUBLE LOW-9 QUOTATION MARK ('&bdquo;')
@@ -55567,10 +55568,10 @@
       <tr><td>0x8A <td>U+0160 <td>LATIN CAPITAL LETTER S WITH CARON ('&Scaron;')
       <tr><td>0x8B <td>U+2039 <td>SINGLE LEFT-POINTING ANGLE QUOTATION MARK ('&lsaquo;')
       <tr><td>0x8C <td>U+0152 <td>LATIN CAPITAL LIGATURE OE ('&OElig;')
-      <tr><td>0x8D <td>U+FFFD <td>REPLACEMENT CHARACTER
+      <tr><td>0x8D <td>U+008D <td>&lt;control&gt;
       <tr><td>0x8E <td>U+017D <td>LATIN CAPITAL LETTER Z WITH CARON ('&#381;')
-      <tr><td>0x8F <td>U+FFFD <td>REPLACEMENT CHARACTER
-      <tr><td>0x90 <td>U+FFFD <td>REPLACEMENT CHARACTER
+      <tr><td>0x8F <td>U+008F <td>&lt;control&gt;
+      <tr><td>0x90 <td>U+0090 <td>&lt;control&gt;
       <tr><td>0x91 <td>U+2018 <td>LEFT SINGLE QUOTATION MARK ('&lsquo;')
       <tr><td>0x92 <td>U+2019 <td>RIGHT SINGLE QUOTATION MARK ('&rsquo;')
       <tr><td>0x93 <td>U+201C <td>LEFT DOUBLE QUOTATION MARK ('&ldquo;')
@@ -55583,12 +55584,16 @@
       <tr><td>0x9A <td>U+0161 <td>LATIN SMALL LETTER S WITH CARON ('&scaron;')
       <tr><td>0x9B <td>U+203A <td>SINGLE RIGHT-POINTING ANGLE QUOTATION MARK ('&rsaquo;')
       <tr><td>0x9C <td>U+0153 <td>LATIN SMALL LIGATURE OE ('&oelig;')
-      <tr><td>0x9D <td>U+FFFD <td>REPLACEMENT CHARACTER
+      <tr><td>0x9D <td>U+009D <td>&lt;control&gt;
       <tr><td>0x9E <td>U+017E <td>LATIN SMALL LETTER Z WITH CARON ('&#382;')
       <tr><td>0x9F <td>U+0178 <td>LATIN CAPITAL LETTER Y WITH DIAERESIS ('&Yuml;')
-    </table><!-- this is the same as the equivalent list in the input stream
-    section, except it has 0x0000 included in the first range. --><p>Otherwise, if the number is in the range 0x0000 to 0x0008, <!--
-    HT, LF allowed --> <!-- U+000B is in the next list --> <!-- FF, CR
+    </table><p>Otherwise, return a character token for the Unicode character
+    whose code point is that number.
+
+    <!-- this is the same as the equivalent list in the input stream
+    section -->
+    If the number is in the range 0x0001 to 0x0008, <!-- HT, LF
+    allowed --> <!-- U+000B is in the next list --> <!-- FF, CR
     allowed --> 0x000E to 0x001F, <!-- ASCII allowed --> 0x007F <!--to
     0x0084, (0x0085 NEL not allowed), 0x0086--> to 0x009F, 0xD800 to
     0xDFFF<!-- surrogates not allowed -->, 0xFDD0 to 0xFDEF, or is one
@@ -55598,11 +55603,7 @@
     0xAFFFE, 0xAFFFF, 0xBFFFE, 0xBFFFF, 0xCFFFE, 0xCFFFF, 0xDFFFE,
     0xDFFFF, 0xEFFFE, 0xEFFFF, 0xFFFFE, 0xFFFFF, 0x10FFFE, or
     0x10FFFF, or is higher than 0x10FFFF, then this is a <a href="#parse-error">parse
-    error</a>; return a character token for the U+FFFD REPLACEMENT
-    CHARACTER character instead.</p>
-
-    <p>Otherwise, return a character token for the Unicode character
-    whose code point is that number.</p>
+    error</a>.</p>
 
    </dd>

Received on Wednesday, 8 July 2009 01:05:11 UTC