[html5] r3205 - [] (0) If you find a declaration while decoding as UTF-16, then ignore it. It ca [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Jun 5 18:28:11 PDT 2009


Author: ianh
Date: 2009-06-05 18:28:10 -0700 (Fri, 05 Jun 2009)
New Revision: 3205

Modified:
   index
   source
Log:
[] (0) If you find a declaration while decoding as UTF-16, then ignore it. It can only be correct if it is not giving a different encoding, in which case it's not useful anyway. (credit: kp)

Modified: index
===================================================================
--- index	2009-06-06 01:18:08 UTC (rev 3204)
+++ index	2009-06-06 01:28:10 UTC (rev 3205)
@@ -59751,6 +59751,12 @@
    pass found that the encoding sniffing algorithm described in the
    earlier section failed to find the right encoding.</li>
 
+   <li>If the encoding that is already being used to interpret the
+   input stream is a UTF-16 encoding, then set the <a href=#concept-encoding-confidence title=concept-encoding-confidence>confidence</a> to
+   <i>certain</i> and abort these steps. The new encoding is ignored;
+   if it was anything but the same encoding, then it would be clearly
+   incorrect.</li>
+
    <li>If the new encoding is a UTF-16 encoding, change it to
    UTF-8.</li>
 

Modified: source
===================================================================
--- source	2009-06-06 01:18:08 UTC (rev 3204)
+++ source	2009-06-06 01:28:10 UTC (rev 3205)
@@ -73427,6 +73427,13 @@
    pass found that the encoding sniffing algorithm described in the
    earlier section failed to find the right encoding.</li>
 
+   <li>If the encoding that is already being used to interpret the
+   input stream is a UTF-16 encoding, then set the <span
+   title="concept-encoding-confidence">confidence</span> to
+   <i>certain</i> and abort these steps. The new encoding is ignored;
+   if it was anything but the same encoding, then it would be clearly
+   incorrect.</li>
+
    <li>If the new encoding is a UTF-16 encoding, change it to
    UTF-8.</li>
 




More information about the Commit-Watchers mailing list