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
To: www-validator-cvs@w3.org
Message-Id: <E1IFY5h-0005Km-7X@wiggum.w3.org>


           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[ 

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:29 UTC