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


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 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:02 UTC