[Bug 4335] HTML-style comments and markup in CSS confuses validator, throws ServletException: Timed out

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

           Summary: HTML-style comments and markup in CSS confuses
                    validator, throws ServletException: Timed out
           Product: CSSValidator
           Version: CSS Validator
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: jean-gui@w3.org
        ReportedBy: ot@w3.org
         QAContact: www-validator-cvs@w3.org


Whenever the CSS parser of the validator finds HTML-style comments <!-- ... or
other similar syntax (doctype declaration too), the parser trips up and throws
the (wrong) exception ServletException: Timed out.

Debug info in console says: 

«
Exception in thread "servlet-runner:1"
org.w3c.css.parser.analyzer.TokenMgrError: Lexical error at line 1, column 3. 
Encountered: "d" (100), after : "<!"        at
org.w3c.css.parser.analyzer.CssParserTokenManager.getNextToken(CssParserTokenManager.java:4032)
       at org.w3c.css.parser.analyzer.CssParser.jj_ntk(CssParser.java:3766)    
   at org.w3c.css.parser.analyzer.CssParser.parserUnit(CssParser.java:337)
»

Jean-Gui is looking into it: it seems to have been created by a fix [1] for bug
[2] 2919. Fixing appears to be tricky.


[1]http://dev.w3.org/cvsweb/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.jj?rev=1.18&content-type=text/x-cvsweb-markup
[2]http://www.w3.org/Bugs/Public/show_bug.cgi?id=2919

Received on Monday, 19 February 2007 13:54:29 UTC