W3C home > Mailing lists > Public > www-validator-css@w3.org > February 2007

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

From: Paul Arzul <paul.arzul@gmail.com>
Date: Sat, 24 Feb 2007 08:57:05 +0200
Message-ID: <423830b0702232257w138ad1d0x695c8b95e1946a37@mail.gmail.com>
To: www-validator-css@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:18 GMT