<?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>5582</bug_id>
          
          <creation_ts>2008-03-20 13:16:20 +0000</creation_ts>
          <short_desc>Validator accepts @charset even with grammar CSS1 selected</short_desc>
          <delta_ts>2009-02-17 11:40:22 +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>CSS 1.0</component>
          <version>CSS Validator</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="CecilWard">cecil</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>ylafon</cc>
          
          <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>19564</commentid>
    <comment_count>0</comment_count>
    <who name="CecilWard">cecil</who>
    <bug_when>2008-03-20 13:16:20 +0000</bug_when>
    <thetext>The validator incorrectly reports &quot;VALID&quot; for the following fragment with grammar=CSS1 explicitly selected.

@charset &quot;utf8&quot;;

Should report INVALID, surely?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19651</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-03-31 14:52:42 +0000</bug_when>
    <thetext>I am a tad ambivalent about this one.

On the one hand, you are right, there is no @charset syntax in REC-CSS1.

On the other hand the message coming from the CSS working group these days is that REC-CSS1 is obsoleted and that CSS Level 1 is the combination of features from the CSS1 spec with definitions from the CSS21 spec, which I read as &quot;use the grammar, syntax and at-rules from CSS21&quot;. 

As such I don&apos;t know if we should be marking @charset as errors in the Level 1 profile. I&apos;m wondering however how the validator is currently treating the @charset syntax for Level 1 though, as the test cases for Bug 5581 are giving odd validation results. I suppose this may just &quot;fix itself&quot; if we actually move forward with the idea of using a single &quot;base&quot; for grammar, syntax and at-rules...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23788</commentid>
    <comment_count>2</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2009-02-17 11:40:22 +0000</bug_when>
    <thetext>The machinery is there to parse and use @charset, however it makes no sens to report CSS1 validity when a normal CSS1 only parser would choke on it (like for some multi-bytes encodings).
As a result, @charset is now sending an error in the case of CSS1
(that needs to be localized)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>