W3C home > Mailing lists > Public > www-validator-css@w3.org > June 2008

Re: restful api wish

From: Kai Hendry <hendry@iki.fi>
Date: Wed, 25 Jun 2008 14:21:48 +0100
Message-ID: <b24851260806250621q3e5ea776qb3bbac71a0c6cec5@mail.gmail.com>
To: "Yves Lafon" <ylafon@w3.org>
Cc: www-validator-css@w3.org

http://wiki.whatwg.org/wiki/Validator.nu_GNU_Output
http://svn.natalian.org/projects/html5/validate-js.sh


An example how I would like to see the CSS validator api to work:

x61:/tmp% cat style.css
body { colour: green; }

curl -s -F css=@style.css http://jigsaw.w3.org/css-validator

And then your service would return in a line based text format:

style.css:1:8:Property colour doesn't exist :  green

So vim could parse this errorformat easily as
filename:lineno:colno:error message

Kind regards,
Received on Wednesday, 25 June 2008 13:22:24 GMT

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