3 class HTMLPurifier_AttrDef_CSS_AlphaValue extends HTMLPurifier_AttrDef_CSS_Number
6 public function __construct()
8 parent::__construct(false); // opacity is non-negative, but we will clamp it
12 * @param string $number
13 * @param HTMLPurifier_Config $config
14 * @param HTMLPurifier_Context $context
17 public function validate($number, $config, $context)
19 $result = parent::validate($number, $config, $context);
20 if ($result === false) {
23 $float = (float)$result;