- From: Chen Sun <chsun@live.com>
- Date: Thu, 24 Jun 2010 17:02:30 -0700
- To: <david@dorward.me.uk>
- CC: <www-validator-css@w3.org>
- Message-ID: <BAY147-w1537D0DBA619B975879089C0C70@phx.gbl>
Thank you very much, David! Do you know why CSS Validator POST request does not work now? It used to work fine. Thanks, Chen Subject: Re: Question about CSS Validator Web Service From: david@dorward.me.uk Date: Fri, 18 Jun 2010 20:14:04 +0100 CC: www-validator-css@w3.org To: chsun@live.com On 17 Jun 2010, at 23:50, Chen Sun wrote: I plan to design an CSS Validator which can validate a batch of files in the same directory. I have two questions hoping you can help me out. http://jigsaw.w3.org/css-validator/validator?text=#oooouterx{marin:20x;border:1x solid #000;backgrod:blue url(images/lcolex1.gif) repeat-y left top;padding:5px;} You will get "Congratulations! No Error Found." But when I validate by direct input, a couple of errors there. # indicates the start of a fragment identifier in a URI, it and everything that follows it will not be passed to the server as it is only used by the client to identify part of the returned document. Did I use ?text=contentToValid right? Should I encode white space, etc? Yes. And the "etc" is important. 2. Is it possible to validate a local css file? How? I tried http://jigsaw.w3.org/css-validator/validator?uri=file:///C|/MyDocuments/test.css or ?uri=C:\MyDocuments\test.css or ?uri=\MyDocuments\test.css or ?uri=file://servername/publicShare/test.css None worked. You can't give the validator a private URI and have it fetch it. You have to upload the file. If you are building a tool, you probably should be using the SOAP API: http://jigsaw.w3.org/css-validator/api.html I also suggest you install a local copy of the validator rather than hammering the free, public service: http://jigsaw.w3.org/css-validator/DOWNLOAD.html -- David Dorward http://dorward.me.uk _________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
Received on Friday, 25 June 2010 00:03:04 UTC