Re: multiple (command line) file validation aborts on first lexical error

On 18/02/07, Paul Arzul <paul.arzul@gmail.com> wrote:
>
> when the first lexical error is reached,

the problem appears to be an exception producing lexical error:

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

this is a real world example: some html got accidentally cut and paste
into a stylesheet.

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)

--
http://jigsaw.w3.org/css-validator/validator?text=p%0D%0A%7B%0D%0A++text-align%3A+left%3B%0D%0A%3Ctr%3E%3C%2Ftr%3E%0D%0A%7D%0D%0A&usermedium=all&warning=1&profile=css21&usermedium=all

Received on Saturday, 24 February 2007 06:57:10 UTC