<?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>4893</bug_id>
          
          <creation_ts>2007-07-30 16:27:29 +0000</creation_ts>
          <short_desc>XML CDATA marked sections</short_desc>
          <delta_ts>2009-02-26 14:37:23 +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>XHTML1.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="Chris Lilley">chris</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>ot</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>15967</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Lilley">chris</who>
    <bug_when>2007-07-30 16:27:29 +0000</bug_when>
    <thetext>The CSS validator doesn&apos;t seem to know about CDATA marked sections in XML.

So for example

&lt;style type=&quot;text/css&quot;&gt;&lt;![CDATA[ 
      .note 
      { 
         color:green 
      }
   ]]&gt;&lt;/style&gt;

gives an error

Lexical error at line 1, column 3. Encountered: &quot;[&quot; (91), after : &quot;&lt;!&quot;

The CSS parser should not see this syntax because the XML parser removes it. It looks as if whatever is doing the parsing is not XML; alternatively, its the CSS pasrser (which allows HTML and XML comments, &lt;!-- --&gt; in CSS due to common bugwards-compatible ways of hiding CSS from older HTML browsers).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23957</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2009-02-26 14:26:06 +0000</bug_when>
    <thetext>Relevant to this, when serving as text/html:
http://www.w3.org/TR/xhtml-media-types/#C_4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23958</commentid>
    <comment_count>2</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2009-02-26 14:37:23 +0000</bug_when>
    <thetext>A few test cases:
http://www.w3.org/2009/02/xhtmlcss.html
served as application/xhtml+css, cdata section not escaped.
The validator accept it as it should.

http://www.w3.org/2009/02/xhtmlcss.html
served as text/html, cdata section not escaped.
The validator refuses to parse it as it should. (although the error should be better than it is now)

http://www.w3.org/2009/02/xhtmlcssescaped.html
served as text/html, cdata section escaped per http://www.w3.org/TR/xhtml-media-types/#C_4
The validator accept it as it should.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>