[Bug 4349] lexical error exception

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

           Summary: lexical error exception
           Product: CSSValidator
           Version: CSS Validator
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 2.1
        AssignedTo: dave.null@w3.org
        ReportedBy: patricka@mkdoc.com
         QAContact: www-validator-cvs@w3.org


cannot validate multiple files from command line as validation stops on first
exception. should continue and try next file. the file first.css:

p
{
 text-align: left;
<tr></tr>
}

produces the exception:

Exception in thread "main" org.w3c.css.parser.analyzer.TokenMgrError:
Lexical error at line 4, column 6.  Encountered: "/" (47), after : "<"
       at
org.w3c.css.parser.analyzer.CssParserTokenManager.getNextToken(CssParserTokenManager.java:4032)
       at org.w3c.css.parser.analyzer.CssParser.getToken(CssParser.java:3759)
       at
org.w3c.css.parser.analyzer.CssParser.skipStatement(CssParser.java:3194)
       at org.w3c.css.parser.analyzer.CssParser.ruleSet(CssParser.java:1720)
       at
org.w3c.css.parser.analyzer.CssParser.afterImportDeclaration(CssParser.java:489)
       at org.w3c.css.parser.analyzer.CssParser.parserUnit(CssParser.java:411)
       at org.w3c.css.parser.CssFouffa.parseStyle(CssFouffa.java:386)
       at org.w3c.css.css.StyleSheetParser.parseURL(StyleSheetParser.java:226)
       at
org.w3c.css.css.HTMLStyleSheetParser.<init>(HTMLStyleSheetParser.java:53)
       at org.w3c.css.css.CssValidator.main(CssValidator.java:146)

which terminates a multi-file command line call:

java -classpath jigsaw.jar:css-validator.jar
org.w3c.css.css.CssValidator file:///tmp/first.css file:///tmp/second.css

(second.css is not validated.)

Received on Saturday, 24 February 2007 09:31:16 UTC