|
54 | 54 | </p> |
55 | 55 | <h1 class="p-name no-ref" id=title>CSS Syntax Module Level 3</h1> |
56 | 56 | <h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft, |
57 | | - <span class=dt-updated><span class=value-title title=20140103>3 January 2014</span></span></span></h2> |
| 57 | + <span class=dt-updated><span class=value-title title=20140108>8 January 2014</span></span></span></h2> |
58 | 58 | <div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-syntax/>http://dev.w3.org/csswg/css-syntax/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css-syntax-3/>http://www.w3.org/TR/css-syntax-3/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-syntax/>http://dev.w3.org/csswg/css-syntax/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2013/WD-css-syntax-3-20131105/ rel=previous>http://www.w3.org/TR/2013/WD-css-syntax-3-20131105/</a><dd><a href=http://www.w3.org/TR/2013/WD-css-syntax-3-20130919/ rel=previous>http://www.w3.org/TR/2013/WD-css-syntax-3-20130919/</a> |
59 | 59 | <dt>Feedback:</dt> |
60 | 60 | <dd><a href="mailto:www-style@w3.org?subject=%5Bcss-syntax%5D%20feedback">www-style@w3.org</a> |
@@ -464,12 +464,17 @@ <h3 class="heading settled heading" data-level=3.2 id=input-byte-stream><span cl |
464 | 464 | is the string "<code>@charset "…";</code>", |
465 | 465 | where the "…" is the sequence of bytes corresponding to the encoding’s label. |
466 | 466 |
|
467 | | -<p> If the return value was <code>utf-16</code> or <code>utf-16be</code>, |
| 467 | +<p> If the return value was <code>utf-16be</code> or <code>utf-16le</code>, |
468 | 468 | use <code>utf-8</code> as the fallback encoding; |
469 | 469 | if it was anything else except failure, |
470 | 470 | use the return value as the fallback encoding. |
471 | 471 |
|
472 | | -<p class=note> Note: This mimics HTML <code><meta></code> behavior. |
| 472 | +<p class=note> Note: UTF-16BE and UTF-16LE are the only ASCII-incompatible encodings that |
| 473 | + <a href=http://encoding.spec.whatwg.org/#concept-encoding-get>get an encoding</a> |
| 474 | + can return. |
| 475 | + Using one of them to decode the ASCII <code>@charset "…";</code> byte sequence |
| 476 | + would result in garbage. |
| 477 | + This mimics HTML <code><meta></code> behavior. |
473 | 478 |
|
474 | 479 | <li> |
475 | 480 | Otherwise, if an <a data-link-type=dfn href=#environment-encoding0 title="environment encoding">environment encoding</a> is provided by the referring document, |
|
0 commit comments