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();
__construct($min=null, $max=null)
Base class for all validating attribute definitions.
$max
HTMLPurifier_Length|string
Represents a Length as defined by CSS.
$min
HTMLPurifier_Length|string
validate($string, $config, $context)
parseCDATA($string)
Convenience method that parses a string as if it were CDATA.