43        if ($string === 
'0') {
 
   46        if (strlen($string) === 1) {
 
   51        if (!$length->isValid()) {
 
   56            $c = $length->compareTo($this->min);
 
   65            $c = $length->compareTo($this->max);
 
   73        return $length->toString();
 
An exception for terminatinating execution or to throw for unit testing.
Represents a Length as defined by CSS.
__construct($min=null, $max=null)
$max
@type HTMLPurifier_Length|string
$min
@type HTMLPurifier_Length|string
validate($string, $config, $context)
Base class for all validating attribute definitions.
parseCDATA($string)
Convenience method that parses a string as if it were CDATA.