Skip to content

Commit

Permalink
[] (0) If you find a declaration while decoding as UTF-16, then ignor…
Browse files Browse the repository at this point in the history
…e it. It can only be correct if it is not giving a different encoding, in which case it's not useful anyway. (credit: kp)

git-svn-id: http://svn.whatwg.org/webapps@3205 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 6, 2009
1 parent b80b96b commit 20f6409
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index
Expand Up @@ -59751,6 +59751,12 @@ interface <dfn id=messageport>MessagePort</dfn> {
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>

Expand Down
7 changes: 7 additions & 0 deletions source
Expand Up @@ -73427,6 +73427,13 @@ interface <dfn>MessagePort</dfn> {
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>

Expand Down

0 comments on commit 20f6409

Please sign in to comment.