Skip to content

Commit 8983877

Browse files
committed
[css2] A BOM overrides any out-of-band information about character encoding,
see http://lists.w3.org/Archives/Public/www-style/2012Oct/0727.html --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%403273
1 parent 3cc451d commit 8983877

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

css2/syndata.src

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: syndata.src,v 2.192 2013-05-02 12:11:38 bbos Exp $ -->
3+
<!-- $Id: syndata.src,v 2.193 2013-05-02 13:02:40 bbos Exp $ -->
44
<head>
55
<title>Syntax and basic data types</title>
66
<!--script src="http://www.w3c-test.org/css/harness/annotate.js#CSS21_DEV" type="text/javascript" defer></script-->
@@ -1419,6 +1419,13 @@ class="index-inst">@charset</span> (see below)</li>
14191419
<li>Assume UTF-8</li>
14201420
</ol>
14211421

1422+
<p class=note>Note that it is not possible to use a 1-byte character
1423+
encoding and start the CSS file with the characters 255 and 254 in
1424+
either order, because the two characters will be interpreted as a
1425+
BOM. E.g., "&#255;" and "&#254;" in ISO-8859-1, "&#729;" and "&#355;"
1426+
in ISO-8859-2, etc. Authors should start such files with something
1427+
else, e.g., a space.
1428+
14221429
<p>Authors using an <span class="index-inst">@charset</span> rule must
14231430
place the rule at the very beginning of the style sheet, preceded by
14241431
no characters. (If a byte order mark is appropriate for the encoding

0 commit comments

Comments
 (0)