- From: Jaime Iniesta <jaimeiniesta@gmail.com>
- Date: Sat, 28 Sep 2013 15:23:31 +0200
- To: "Jens O. Meiert" <jens@meiert.com>
- Cc: W3C WWW Validator CSS <www-validator-css@w3.org>
- Message-ID: <CAKFFWV89OusPqrgkaFtxD3CSWa7xPaZvmL-0Jd3OhychjxvXJA@mail.gmail.com>
2013/9/28 Jens O. Meiert <jens@meiert.com> > > Is there any way to exclude the linked stylesheets from the validation, > so > > only the styles defined within the page itself are validated? > > Just out of curiosity, what’s the benefit of this, or what particular > use case do you see for this? > > The use case for this is site-wide validation. When you're validating multiple pages of the same site, you'd rather see the CSS errors reported for the exact resource they appear on. Say, for example, you're validatiing a site with 100 pages, and each of the pages links to the same stylesheet, that has 25 errors. Instead of seeing this result: page001.html # 25 errors page002.html # 25 errors ... page100.html # 25 errors I'd rather see this: styles.css # 25 errors page001.html # 0 errors page002.html # 0 errors ... page100.html # 0 errors Also, as the CSS validator always seems to validate the linked stylesheets, you're generating extra traffic on the validated site. For each page validated, it will fetch the HTML page and each of the linked stylesheets, so in this case, to validate 100 pages you're doing 200 requests to the server, while if you could tell the validator to exclude linked stylesheets (and validate them separately), you'd be doing 101 requests in this case. But, anyway, this is only a use case, I think it's fine that the CSS validator includes the linked stylesheets on the validation for single page validations, but in the case of site-wide validation, it would be useful to be able to exclude them and validate them separately, as an option. Regards, Jaime
Received on Saturday, 28 September 2013 13:23:59 UTC