<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>702</bug_id>
          
          <creation_ts>2004-05-05 22:40:30 +0000</creation_ts>
          <short_desc>BOM not recognized for file upload</short_desc>
          <delta_ts>2004-10-27 12:45:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>upload file</component>
          <version>CSS Validator</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bj">bjoern</reporter>
          <assigned_to name="Philippe Le Hegaret">plh</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1784</commentid>
    <comment_count>0</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2004-05-05 22:40:30 +0000</bug_when>
    <thetext>Message-ID: &lt;4095D6EB.3070606@iinet.net.au&gt;
Date: Mon, 03 May 2004 15:21:47 +1000
From: Lachlan Hunt &lt;lachlan.hunt@iinet.net.au&gt;
To: www-validator-css@w3.org
X-Archived-At: http://www.w3.org/mid/4095D6EB.3070606@iinet.net.au

Hi,
   I tried validating some CSS files that have been saved as utf-8, 
however the validator issued the following error.

     * Line: 0 Context : ﻿

       Parse Error - ﻿@charset &quot;UTF-8&quot;;

   Even if I remove the @charset rule, I still get a similar error 
message.  The error appears to be caused by the presence of the utf-8 BOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2562</commentid>
    <comment_count>1</comment_count>
      <attachid>377</attachid>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2004-10-27 12:26:48 +0000</bug_when>
    <thetext>Created attachment 377
BOM and ruleset</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2563</commentid>
    <comment_count>2</comment_count>
      <attachid>378</attachid>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2004-10-27 12:36:14 +0000</bug_when>
    <thetext>Created attachment 378
BOM and @media at-rule</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2564</commentid>
    <comment_count>3</comment_count>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2004-10-27 12:45:36 +0000</bug_when>
    <thetext>&lt;http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D377%26action%3Dview&amp;usermedium=all&gt;
...is fine.

&lt;http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D378%26action%3Dview&amp;usermedium=all&gt;
...raises an error.

According to CSS 2.1, this is exactly as it should be. The BOM (byte-order mark,
U+FEFF) is not distinguished in the scanner from any other character outside of
the Latin-1 repertoire. Thus the BOM starts an identifier, which starts a rule set.

CSS3 will probably change the regulations to account for the special meaning of
a BOM.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>377</attachid>
            <date>2004-10-27 12:26:48 +0000</date>
            <delta_ts>2004-10-27 12:26:48 +0000</delta_ts>
            <desc>BOM and ruleset</desc>
            <filename>BOM.txt</filename>
            <type>text/css; charset=UTF-8</type>
            <size>24</size>
            <attacher name="Etan Wexler">ewexler</attacher>
            
              <data encoding="base64">77u/YSB7DSAgbWFyZ2luOiAwOw0gIH0N
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>378</attachid>
            <date>2004-10-27 12:36:14 +0000</date>
            <delta_ts>2004-10-27 12:36:14 +0000</delta_ts>
            <desc>BOM and @media at-rule</desc>
            <filename>BOM.txt</filename>
            <type>text/css; charset=UTF-8</type>
            <size>47</size>
            <attacher name="Etan Wexler">ewexler</attacher>
            
              <data encoding="base64">77u/QG1lZGlhIGFsbCB7DSAgYSB7DSAgICBtYXJnaW46IDA7DSAgICB9DSAgfQ0=
</data>

          </attachment>
      

    </bug>

</bugzilla>