Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[giow] (3) Revert part of r5545 because bz changed his mind and this …

…matches reality better. :-)

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=19623
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7701 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit ccdc55f)

make the BOM take precedence over HTTP charset for scripts
  • Loading branch information...
commit 28d8b91f9d034ccea4eba9861e3725e3b0f468a7 1 parent c241935
ianh authored silviapfeiffer committed
Showing with 9 additions and 9 deletions.
  1. +9 −9 source
View
18 source
@@ -16393,15 +16393,6 @@ c-end = "-->"</pre>
<ol>
- <li><p>If the resource's <span title="Content-Type">Content Type metadata</span>, if any,
- specifies a character encoding, and the user agent supports that encoding, then let <var
- title="">character encoding</var> be that encoding, and jump to the bottom step in this
- series of steps.</p></li>
-
- <li><p>If the algorithm above set <var>the script block's character encoding</var>, then
- let <var title="">character encoding</var> be that encoding, and jump to the bottom step
- in this series of steps.</p></li>
-
<li><p>For each of the rows in the following table, starting with the first one and going
down, if the file has as many or more bytes available than the number of bytes in the
first column, and the first bytes of the file match the bytes given in the first column,
@@ -16443,6 +16434,15 @@ c-end = "-->"</pre>
</li>
+ <li><p>If the resource's <span title="Content-Type">Content Type metadata</span>, if any,
+ specifies a character encoding, and the user agent supports that encoding, then let <var
+ title="">character encoding</var> be that encoding, and jump to the bottom step in this
+ series of steps.</p></li>
+
+ <li><p>If the algorithm above set <var>the script block's character encoding</var>, then
+ let <var title="">character encoding</var> be that encoding, and jump to the bottom step
+ in this series of steps.</p></li>
+
<li><p>Let <var title="">character encoding</var> be <var>the script block's fallback
character encoding</var>.</p></li>
Please sign in to comment.
Something went wrong with that request. Please try again.