W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2007

[Bug 4893] XML CDATA marked sections

From: <bugzilla@wiggum.w3.org>
Date: Mon, 30 Jul 2007 16:27:29 +0000
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1IFY5h-0005Km-7X@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4893

           Summary: XML CDATA marked sections
           Product: CSSValidator
           Version: CSS Validator
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: ot@w3.org
        ReportedBy: chris@w3.org
         QAContact: www-validator-cvs@w3.org


The CSS validator doesn't seem to know about CDATA marked sections in XML.

So for example

<style type="text/css"><![CDATA[ 
      .note 
      { 
         color:green 
      }
   ]]></style>

gives an error

Lexical error at line 1, column 3. Encountered: "[" (91), after : "<!"

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, <!-- --> in CSS due to common
bugwards-compatible ways of hiding CSS from older HTML browsers).
Received on Monday, 30 July 2007 16:27:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:58 GMT