|my $val = WebService::Validator::CSS::W3C->new|
|my $val = WebService::Validator::CSS::W3C->new($ua)|
|my $val = WebService::Validator::CSS::W3C->new($ua, $url)||Creates a new WebService::Validator::CSS::W3C object. A custom LWP::UserAgent object can be supplied which is then used for HTTP communication with the CSS Validator. $url is the URL of the CSS Validator, http://jigsaw.w3.org/css-validator/validator by default.|
|my $success = $val->validate(%params)||
Validate a style sheet, takes %params as defined below. Either string
or uri must be supplied. Returns a true value if the validation succeeded
(regardless of whether the style sheet contains errors).
|my $success = $val->success||Same as the return value of validate().|
|my $is_valid = $val->is_valid||Returns a true value if the last attempt to validate() succeeded and the validator reported no errors in the style sheet.|
|my $num_errors = $val->errorcount||returns the number of errors found for the checked style sheet. Get the details of the errors with $val->errors (see below).|
|my @errors = $val->errors||
Returns a list with information about the errors found for the
style sheet. An error is a hash reference; the example in the
synopsis would currently return something like
|my $num_warnings = $val->warningcount||returns the number of warnings found for the checked style sheet. Get the details of each warning with $val->warnings (see below).|
|my @warnings = $val->warnings||
Returns a list with information about the warnings found for the
style sheet. This is currently of limited use as it is broken, see
<http://www.w3.org/Bugs/Public/show_bug.cgi?id=771> for details.
|my $ua = $val->user_agent|
|my $ua = $val->user_agent($new_ua)||
The LWP::UserAgent object you supplied to the constructor or a
custom object created at construction time you can manipulate.
You can also supply a new object to replace the old one.
|my $uri = $val->validator_uri|
|my $uri = $val->validator_uri($validator_uri)||Gets or sets the URI of the validator. If you did not specify a custom URI, http://jigsaw.w3.org/css-validator/validator by default.|
|my $response = $val->response||The HTTP::Response object returned from the last request. This is useful to determine why validation might have failed.|
|my $uri = $val->request_uri||The URI object used for the last request.|
|my $som = $val->som||The SOAP::SOM object for the last successful deserialization, check the return value of validate() or success() before using the object.|
This module uses the SOAP interface for the W3C CSS validatom, which still has a number of bugs, tracked via W3Cs Bugzilla, <http://www.w3.org/Bugs/Public/>.
This module is not directly associated with the W3C. Please remember that the CSS Validator is a shared resource so do not abuse it: you should sleep between requests, and consider installing the Validator locally, see <http://jigsaw.w3.org/css-validator/DOWNLOAD.html>.
Bjoern Hoehrmann <email@example.com>
This module is licensed under the same terms as Perl itself.
|perl v5.20.3||WEBSERVICE::VALIDATOR::CSS::W3C (3)||2007-01-19|