|
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=20140124>24 January 2014</span></span></span></h2> |
| 57 | + <span class=dt-updated><span class=value-title title=20140127>27 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> |
@@ -446,7 +446,8 @@ <h3 class="heading settled heading" data-level=3.2 id=input-byte-stream><span cl |
446 | 446 | use the return value as the fallback encoding. |
447 | 447 |
|
448 | 448 | <li> |
449 | | - Otherwise, check the byte stream. If the byte stream begins with the hex sequence |
| 449 | + Otherwise, check the byte stream. |
| 450 | + If the first 1024 bytes of the stream begin with the hex sequence |
450 | 451 |
|
451 | 452 | <pre>40 63 68 61 72 73 65 74 20 22 XX* 22 3B</pre> |
452 | 453 | <p> where each <code>XX</code> byte is between 23<sub>16</sub> and 7E<sub>16</sub> inclusive, |
@@ -4704,7 +4705,15 @@ <h3 class="heading settled heading" data-level=10.1 id=changes-WD-20131105><span |
4704 | 4705 | <a data-biblio-type=informative data-link-type=biblio href=#encoding title=encoding>[ENCODING]</a> has been added to the list of normative references. |
4705 | 4706 | It was already referenced in normative text before, |
4706 | 4707 | just not listed as such. |
4707 | | - </ul> |
| 4708 | + <li> |
| 4709 | + In the algorithm to <a data-link-type=dfn href=#determine-the-fallback-encoding title="determine the fallback encoding">determine the fallback encoding</a> of a stylesheet, |
| 4710 | + limit the <code>@charset</code> byte sequence to 1024 bytes. |
| 4711 | + This aligns with what HTML does for <code><meta charset></code> |
| 4712 | + and makes sure the size of the sequence is bounded. |
| 4713 | + This only makes a difference with leading or trailing whitespace |
| 4714 | + in the encoding label: |
| 4715 | + |
| 4716 | +<pre>@charset " <em>(lots of whitespace)</em> utf-8";</pre> </ul> |
4708 | 4717 |
|
4709 | 4718 | <h3 class="heading settled heading" data-level=10.2 id=changes-WD-20130919><span class=secno>10.2 </span><span class=content> |
4710 | 4719 | Changes from the 19 September 2013 Working Draft</span><a class=self-link href=#changes-WD-20130919></a></h3> |
|
0 commit comments