HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/6814

File a bug

SVNBugCommentTime (UTC)
681414676[Gecko] [Internet Explorer] [Opera] [Webkit] When a page interpreted as UTF-8 has a <meta charset> saying UTF-16, the spec used to say to reload even though the encoding didn't change.2011-11-02 20:35
Index: source
===================================================================
--- source	(revision 6813)
+++ source	(revision 6814)
@@ -95619,6 +95619,16 @@
 
   <ol>
 
+   <li>If the encoding that is already being used to interpret the
+   input stream is <span>a UTF-16 encoding</span>, 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 <span>a UTF-16 encoding</span>, change
+   it to UTF-8.</li>
+
    <li>If the new encoding is identical or equivalent to the encoding
    that is already being used to interpret the input stream, then set
    the <span title="concept-encoding-confidence">confidence</span> to
@@ -95629,16 +95639,6 @@
    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 <span>a UTF-16 encoding</span>, 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 <span>a UTF-16 encoding</span>, change
-   it to UTF-8.</li>
-
    <li>If all the bytes up to the last byte converted by the current
    decoder have the same Unicode interpretations in both the current
    encoding and the new encoding, and if the user agent supports

|