[Bug 4893] XML CDATA marked sections

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 UTC