PEAR logo

HTML_CSS : The Definitive Guide

Name

HTML_CSS::validate — Validate a CSS data source

Synopsis

require_once 'HTML/CSS.php';
boolean|PEAR_Error HTML_CSS::validate ( $styles,  
  &$messages);  
array   $styles ;
array   &$messages ;

Description

Execute the W3C CSS validator service on each data source (filename or string) given by parameter $styles.

Parameter

array $styles

Data sources to check validity

array &$messages

Error and Warning messages issue from W3C CSS validator service

Throws

throws HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_INVALID_DEPS, HTML_CSS_ERROR_INVALID_SOURCE

Since

since version 1.5.0 (2008-01-15)

Note

This function can not be called statically.

HTML_CSS : The Definitive Guide v 1.5.0 : January 15, 2008